Showing results for 
Search instead for 
Did you mean: 
Level: Power Up

Upload file to SharePoint



I am currently having a difficult time trying to workout a flow that will accomplish the following task.  From my reading, I was able to find alot of examples of how to upload attachments to SharePoint, but not the Email(.msg) file itself. Any help would be greatly appreciated. Have a great day!



1) Send out a weekly reminder about a specific task. 

2) Upload the email that is sent out (.msg) to a SharePoint site, so that it may be stored for Auditing Purposes. 


Current Flow

1) "Recurrence" for the Data and Time

2) "Office 365 Outlook" for sending the email 

Community Support Team
Community Support Team

Re: Upload file to SharePoint

Hi @aemanning,


You could use Export email and set the extension of the created file to .msg.

But there seems to be no way to get the Message id to configure Export email action in the Flow you describe.

So you may need to use Get emails action to get the newest sent email in sent Items and get its Message id.

Then in Get emails action, try to match the field with Send an email action, so that the most likely email is the one that was sent before.

And use today's date as the file name.

Image reference:


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.

Helpful resources


Power Platform Online Conference

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


New & Improved Power Automate Community Cookbook

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


Power Automate Community User Group Member Badge

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


Incoming: New and improved badges!

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


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Solution Authors
Top Kudoed Authors
Users online (5,177)