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
Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Upcoming Events

Experience what’s next for Power Automate

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Top Solution Authors
Top Kudoed Authors
Users online (8,787)