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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
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,138 Super User 2026 Season 1 on at
     
    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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 391

#2
11manish Profile Picture

11manish 276

#3
David_MA Profile Picture

David_MA 256 Super User 2026 Season 1

Last 30 days Overall leaderboard