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

Community site session details

Session Id :
Power Automate - General Discussion
Suggested answer

Get Email ID

(0) ShareShare
ReportReport
Posted on by
Hi,
 
I am doing a flow for Outlook 365, but I am a bit lost on how to handle email ID. I would like to do one of the following:
  1. Get the ID of an email that is already in my sent folder. I see online that you can use the "Get Email", set the folder and filters, and get an ID, but the "Get Email" for me just has the ID message parameter, so I can't use it as suggested. ChatGPT tells me to do the same, but again I can't...
  2. Get the ID of an email that I sent in the flow with a "Send Email to All" action. I tried to catch the ID from the "Send Email" output, but the ID is not there.
Any help would be appreciated!
 
Thanks.
Categories:
I have the same question (0)
  • Suggested answer
    Nived_Nambiar Profile Picture
    18,029 Super User 2025 Season 2 on at
    Get Email ID
     
    Send an email action output does not have email id of sent email- but there is a way to find it out , see below
     
    1. Use send an email action to send the email , here i have used the highlighted subject
     
     
    2. Use Initialize variable action to initialize an array like below
     
    Now use a do until loop which runs until the above array variable has elements in it , see below
     
    Inside the do until loop- add the following actions
     
    2.1 - Use get emails action to get list of emails based on subject provided in subject filter, recipient, from as shown below from sent items folder in mailbox
     
     
    2.2 use set variable to set the variable with values dynamic content which is output of the above action
     
     
    Do until is used as message sent does not immediately appears in the sent items folder, it may take some times- to account that we have used the loop.
     
    Outside the loop use the compose action to extract the id of email sent as shown below
     
     

    Thanks & Regards,
    Nived N

    Stay connected:
    LinkedIn | YouTube | Blogs

    Was this answer helpful?
    If yes, please mark it as the solution by selecting the checkbox in the discussion thread.
    Your feedback motivates me to keep contributing. Thank you!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 650 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 341 Moderator

#3
developerAJ Profile Picture

developerAJ 256

Last 30 days Overall leaderboard