Showing results for 
Search instead for 
Did you mean: 
Regular Visitor

How to get attachments from saved msg file


I've got saved a message files .msg on SharePoint. 

I need to get an .xlsx attachment from the latest one. 


Any ideas?

Super User
Super User

Hello @tsibilski ,


I would like to propose a solution but using another Microsoft tool as well.


Depending on the license that you have you can create a flow using MS Power Automate that will save the xlsx attachment from an email to a folder on Sharepoint.


Then using Power Query you can retrieve the latest excel file from the Sharepoint folder. A quick way to do that is:

1. Load all xlsx files

2. Sort them by creation or modified date

3. Keep Top Rows = 1

Helpful resources

Power BI Show Ep 4 Post Show Carousel.jpg

The Power BI Community Show

Shabnam Watson demos Incremental refresh & Hybrid Tables and Leila Etaati demos Charticulator.

PBI April Release 2022 768x460.png

Check it out!

Click here to read more about the April 2022 updates!

Power BI Dev Camp Session 22 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!