web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Saving email attachmen...
Power Automate
Answered

Saving email attachments (.msg) with flow

(0) ShareShare
ReportReport
Posted on by

Hello Experts,

 

I m working on flow. where I need to save attachment in Sharepoint Libary. 

It is working for all type of files (pdf, word, xls).. But It doesnt work if email attachment comes with (.msg) or eml

 

A user send email with another email as attachment. So I m wanting to save that attachment into SharePoint. 

It seems .MSG is not being recogized as attachment.

 

Anybody else faced issue like this ?

 

Any help will be much appericaited. 

Regards

T

 

Categories:
I have the same question (0)
  • Verified answer
    v-bacao-msft Profile Picture
    on at

    Hi @Anonymous ,

     

    I did the test on my side and there is indeed a scene you described.

    I guess you added Outlook Item as an attachment in Outlook client, so this happens.

     

    Currently, MS Flow cannot save Outlook items. Even if you add locally stored .eml or .msg files as attachments, they will be automatically sent as Outlook Item on Outlook client.

    This type of file is judged in MS Flow as no attachment included in the email, so the file cannot be extracted. Moreover, the size of the file is 0, and there is no file content that can be extracted.

     

    But if you use Outlook.com to send mail and send the locally saved .eml/.msg file as an attachment, we could save these attachments file in SharePoint Library.

     

    Please take a try.

     

    Best Regards,

  • Community Power Platform Member Profile Picture
    on at

    Thanks for your reply. 

     

    unfortunately sending files through outlook.com and localy saved .eml doesn't solve my problem.

     

  • Community Power Platform Member Profile Picture
    on at

    Hello,

     

    I have similar issue. Before I try your suggestion, will this is applicable for O365 email as well?

  • kmw1130 Profile Picture
    988 on at

    I'd also like to have the .eml file attached to a SharePoint List Item.  The email attachments work, but I not the .eml file.  It does save it to a document library in Teams (Documents > General > Email Messages), but I would like that same .eml file saved to this library attached to my sharepoint list.  Is it possible?

    Thanks

    Kim

  • Verified answer
    Jay-Encodian Profile Picture
    2,920 on at

    Hey @kmw1130 @Anonymous @v-bacao-msft 

    I may have misunderstood the question here... but saving an email message as a SharePoint list item attachement (EML) with contained attachments is pretty simple.

    The Flow:

    1.png

     

    The item in SharePoint:

    2.png

     

    The attachment:

    d3.pngHTH

    Jay

  • kmw1130 Profile Picture
    988 on at

    @Jay-Encodian I tried that, but it didn't really work.  It added an .eml attachment, but it is not attaching to my SharePoint list item.

    The only difference between yours and mine is you have an export email.  Do I need that? 

    flow.png

  • Jay-Encodian Profile Picture
    2,920 on at

    @kmw1130 

    There's quite a few differences between my flow and yours 🙂

    Yes, you need to export the email... the export will include the attachments so there is no need to separately attach each attachment on the email to the list item unless you want them in addition to the *.eml file

    BTW - your current Flow wouldn't work properly if there was more than 1 attachment on the email as you're adding the EML file for every single attachement... i.e. if there were two attachments on the email your flow would add each attachment at the EML twice.

  • kmw1130 Profile Picture
    988 on at

    @Jay-Encodian I do want the attachments in addition to the email, but I'm going to try doing it the way you suggest and see if that'll work for me.

    I still want it to forward to my Teams though, just to have a copy saved there.  Can I keep that step in for it to work?

    Thanks you!

  • Jay-Encodian Profile Picture
    2,920 on at

    @kmw1130 

    If you need the attachments separately then just add them.., I was just pointing out that the EML file also contains the attachments so you're in affect adding the attachments twice. If you're adding the attachments separately why not just convert the email HTML content to PDF and add along with the attachments? no need for an EML file then

  • kmw1130 Profile Picture
    988 on at

    @Jay-Encodian Then would I need my Apply to Each to add the Attachments separately?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard