cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Save email attachments from shared mailbox to SharePoint online (with different name)

Hello, 

 

I am having trouble saving pdf attachments from a shared email mailbox to sharepoint. 

 

I want to save them under the subjects name. 

 

It runs and creates a file under in the sharepoint folder but its not the attachment, its a 1 KB file that i am unable to open. 

 

Is it not possible to change the attcments name or am i doing something wrong here?

 FLOW.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Save email attachments from shared mailbox to SharePoint online (with different name)

Hi @BjarkiThor,

 

In general, if you want to save the files contained in the attachment to the SP Library, the configuration in File Name and File Content should be Attachments Name and Attachment Content, as below:

1.PNG

If you directly populate the Subject directly in the File Name, the file will be missing type; it is also inappropriate to fill the Current item in the File content, because the Current item does not only contain File content.

If you want to use Subject as the file name, you need to add ".pdf" as the file type.

2.PNG

However, if there are multiple pdf files in the attachment, the file name seems to be repeated, which may overwrite the previously created file.

It is recommended to add a variable to prevent the file name from being duplicated.

3.PNG

4.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Highlighted
Resident Rockstar
Resident Rockstar

Re: Save email attachments from shared mailbox to SharePoint online (with different name)

Hi @BjarkiThor

The last time I did this I used:Capture-250.png

So I'd advise usinmg "Get Item" after your trigger.

 

If you find my posts helpful, please mark with thumbs up

If this solves your issue, please click "Accept as Solution"

Any questions, just ask.

Thanks, Alan


Did I answer your question? Mark my post as a solution!

Proud to be a Flownaut!


Highlighted
Community Support
Community Support

Re: Save email attachments from shared mailbox to SharePoint online (with different name)

Hi @BjarkiThor,

 

In general, if you want to save the files contained in the attachment to the SP Library, the configuration in File Name and File Content should be Attachments Name and Attachment Content, as below:

1.PNG

If you directly populate the Subject directly in the File Name, the file will be missing type; it is also inappropriate to fill the Current item in the File content, because the Current item does not only contain File content.

If you want to use Subject as the file name, you need to add ".pdf" as the file type.

2.PNG

However, if there are multiple pdf files in the attachment, the file name seems to be repeated, which may overwrite the previously created file.

It is recommended to add a variable to prevent the file name from being duplicated.

3.PNG

4.PNG

Please take a try.

 

Best Regards,

Community Support Team _ Barry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Highlighted
New Member

Re: Save email attachments from shared mailbox to SharePoint online (with different name)

Thank you, the .pdf did the trick and changed the file content from current item to Attachments content. 

 

- Bjarki 

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

Top Solution Authors
Top Kudoed Authors
Users online (7,759)