cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
G99
Level: Powered On

Save specific email attachments from Outlook to SharePoint Online doc library

Never used Flow before.

I am trying to create a flow, that will save the attachment that is recieved in Outlook to SPO.

The conditions i have is that the subject will have different words and depending on those words the attachment will need to be saved to a designated sharepoint online doc library.

Need some guidance would be great if someone has screen shots of how to do this please.

I've done a test one and it failed:

At Export email (V2) in the error details is mentioned Id is malformed

 

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Save specific email attachments from Outlook to SharePoint Online doc library

Hi @G99 ,

 

It seems that you did not populate the expected Message-Id into Export email action.

If you want to export the entire email and save it as the .eml file to SharePoint Library, please refer to the following image:

6.PNG

If you only want to save email attachments, please refer to the following image:

7.PNG

 

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

8 REPLIES 8
Dual Super User
Dual Super User

Re: Save specific email attachments from Outlook to SharePoint Online doc library

@G99 

Can you share a screenshot from your flow?

THere is a template to save attachments in a SP Library, not sure if you are working on top of it or not

Also in this post you can find a trick to specify multiple values

Thankx!





If anyone is trying to help you with an issue, the fastest way to say thanks is by kudoing. Be grateful, Thumbs up!

Proud to be a Flownaut!





G99
Level: Powered On

Re: Save specific email attachments from Outlook to SharePoint Online doc library

supplements.png

 

 

 

 

email.PNG

 

 

Dual Super User
Dual Super User

Re: Save specific email attachments from Outlook to SharePoint Online doc library

@G99 

Do you need to save attachments from certain emails, or save the whole email in .eml format?

IF you just care about the .eml, the first scenario described in this post can be useful for you.

 

If you just care about attached files, then I would recommend this second post instead. Or, you try with the Template a mentioned in my first response. Please note both "Has attachment" and "Include attachment" inputs to your Trigger shall be set to True, while in your screenshot "Include attachments" is set to false.

Hope this helps





If anyone is trying to help you with an issue, the fastest way to say thanks is by kudoing. Be grateful, Thumbs up!

Proud to be a Flownaut!





Community Support Team
Community Support Team

Re: Save specific email attachments from Outlook to SharePoint Online doc library

Hi @G99 ,

 

It seems that you did not populate the expected Message-Id into Export email action.

If you want to export the entire email and save it as the .eml file to SharePoint Library, please refer to the following image:

6.PNG

If you only want to save email attachments, please refer to the following image:

7.PNG

 

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

Dual Super User
Dual Super User

Re: Save specific email attachments from Outlook to SharePoint Online doc library

Barry

Sorry for the offtopic, in the posts I shared both "Has attachment" and "Include attachments" inputs to Trigger shall be set to True, while in your screenshot "Include attachments" is set to false.

So, the value of "include attachments" doesn't matter in this scenario, right?

Thanx!





If anyone is trying to help you with an issue, the fastest way to say thanks is by kudoing. Be grateful, Thumbs up!

Proud to be a Flownaut!





Highlighted
G99
Level: Powered On

Re: Save specific email attachments from Outlook to SharePoint Online doc library

 

Thanks will try and let you know

 

G99
Level: Powered On

Re: Save specific email attachments from Outlook to SharePoint Online doc library

Thanks this works perfectly.

Whats the best approach if i have mutiple emails coming into the same mailbox but depending on keywords in the subject they need to be directed to a specific SPO doc library?

And to add another layer how do i create an email alert to users once the email attachment(s) have been added to SPO... as mentioned they would be in different doc libs, so ideally wouldnt want them all to user alert me on each doc lib?

Thanks

G99
Level: Powered On

Re: Save specific email attachments from Outlook to SharePoint Online doc library

HI

After the file is added to SharePoint, and the next time it runs, it then re-adds the file again, overwriting the previous file in SPO

How can i move the email once the attachment has been saved into SPO Doc lib i tried by first sending an email to show the attachment has been saved ot SPO but the move doesnt work :

 

email.PNG

Helpful resources

Announcements
firstImage

Power Platform Online Conference

Speakers, submit your sessions now! Call for speakers ends Feb. 10!

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!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,692)