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 / Save an email I receiv...
Power Automate
Answered

Save an email I received in the same folder the attachments are in a SharePoint library

(0) ShareShare
ReportReport
Posted on by 399

Hi guys!

 

So I had a flow that when I receive an email,  creates an item with the subject of the mail and it gets the inline attachments, but I also want to attach the same mail (.msg). How could I do it, the flow looks like this:

CarlesMartin_0-1714644293638.png

Thanks!!

Categories:
I have the same question (0)
  • Verified answer
    ManishSolanki Profile Picture
    15,091 Super User 2025 Season 2 on at

    Hi @CarlesMartin 

     

    Use "Export email" action to export the email. Pass the 'Message ID' property from the trigger:

    ManishSolanki_0-1714646460821.png

     

    Pass the output body of export email action in the add attachment action:

    ManishSolanki_2-1714646757570.png

     

    For filename you can use the below expression:

    @{triggerOutputs()?['body/subject']}.msg

    just copy-paste the above expression in the 'File Name' input parameter.

     

     

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

  • CarlesMartin Profile Picture
    399 on at

    It seems it works and it creates everything good but when i try to open the word in the SP, it says i cant edit it. Maybe it will just happen with Office word. I will notice you something once I receive other mails but seems it works good.

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 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard