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 / Possible to get the Me...
Power Automate
Unanswered

Possible to get the Message id from Send an email?

(1) ShareShare
ReportReport
Posted on by 664

I have a flow where I am sending an email to a user (triggered from Power Apps). I'd like to upload a copy of this email as an .eml file to a SharePoint document library. I found that I can get an email attachment using the Export email (V2) action, but I can't seem to get the Message id from the email I just sent.

I think I could also forward the email to some sort of behind the scenes email address, trigger on When a new email arrives, and then Export email to add to the library, however it seems fairly inefficient.

Does anyone know how I can get the Message Id or of a more efficient way to export without using the second email address?

Categories:
I have the same question (0)
  • Verified answer
    yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hi @Cooper01 

     

    By design, the action Send an Email does not return the message ID of the email being sent therefore it cannot be retrieved from the action outputs. 

     

    If you think this should be added as a feature, you can create an idea post or upvote already existing ones here: https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • HEATFreight Profile Picture
    1,024 on at

    Please do this! I don't have time to make the idea, but suffice it to say... It's really bizarre that -given everything Power Automate can do- it can't keep track of outgoing message ID ?!?!?! Strange, that seems like a relatively easy thing to do 🤷‍♂️

  • HEATFreight Profile Picture
    1,024 on at

    Also, it would seem that they've got a bug in the way this reply box thingy interprets emojis, because the male shrug gets converted to female shrug + male symbol, lmao!

  • asd2525 Profile Picture
    68 on at

    I would do a wait action for just a minute or so then use the "Get Emails" action to get the email from the sent folder. You can use the user's email that you are sending it to, along with other aspects of the email to identify it, and then limit the return to the Top 1. Then use the "Export email" action. It will do an "Apply to each" but if you make the count only 1 then that won't matter.

    I don't know how often you are sending emails to the same person with the same info but if you had a little bit of time between them this should work. 

  • HEATFreight Profile Picture
    1,024 on at

    Yeah I mean I can just subject-line match to the unique ID I generate via timestamp, but was hoping for a simple solution 🤦‍♂️

  • HEATFreight Profile Picture
    1,024 on at

    Nested triggers! Or Power Automate Inception, lmao🤣

    We really do need to have triggers within flows, to enable more complex behavior. I have used desktop flows to run other desktop flows, in a pinch. Is there no functionality to trigger, specifically, an existing cloud flow within another cloud flow? Or even within a desktop flow?!? Those would be amazing features but I don't think it currently exists. I am using desktop flow triggers within cloud flows extensively. The desktop flow can even send outputs back to the cloud flow when it finishes, which is extremely powerful.

    Seems as though we should have more flexibility with this concept of trigger a flow within a flow. If I have a button-trigger cloud flow, I should be able to click that button within another cloud flow! ...well, without having to build a web automation to workaround the missing functionality, although I've considered it🤖🤑

    EDIT: After I wrote this comment, I figured out that flows within solutions can call other flows with the "Run a child flow" action 🤘🤑🤘

  • asd2525 Profile Picture
    68 on at

    I don't see what about this isn't simple. I used just the email of the person who triggered the flow as the To: part of the email and the trigger button asks for a name to input. I just made this simple flow and it worked fine.

    asd2525_0-1615501236011.pngasd2525_1-1615501273237.png

     

  • HEATFreight Profile Picture
    1,024 on at

    It's possible for that to trigger on invalid data whereas an ID number is a cryptographically unique hash that can't possibly match to the wrong email before the heat death of the universe.

  • DanielK030 Profile Picture
    17 on at

    For everyone who has the same issue or come across this post, please vote for the idea: Outlook 365 Mail - Send an e-mail / Export email · Community (powerautomate.com)

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard