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 / Get Message Id for Rep...
Power Automate
Answered

Get Message Id for Reply Email in Flow

(1) ShareShare
ReportReport
Posted on by 24

Hi Community Members,

 

I am trying to get the message ID of a reply email through Office 365 Outlook connector but this does not return anything in response. How can I get that id? Is there a workaround?

 

Thanks in advance.

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

    Hi @davejoh 

     

    To get the Message ID of the Reply email, you can add a action "Get Emails" on the outlook connector and select Sent Items as Folder. Set Top to 1 and add subject filter if you have enough data to be passed.
     
    Now, you can get the record and you can retrieve the id from it.
     
    Note: Add a delay of 5 seconds between Reply to and Get Emails.
     
    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!
  • kharina Profile Picture
    249 on at

     

    Hello @yashag2255 ,

    How do I set the 5-sec delay? 

     

    Thank you,

    Kharina

  • Jinks4 Profile Picture
    8 on at

    Hi @yashag2255 

     

    I tried to do this and everything works fine, except I being the sender of the emails in the sent items, I'm also receiving the replies using the reply to email action. Is there anyway to stop this from happening and send replies only to the recipients of the previous mail?

  • Aion Profile Picture
    4 on at

    hello Jinks4,

    can you please share your flow?
    I'm trying to do the same thing but I get an error.

    Regards,

  • in-a-finch Profile Picture
    40 on at

    This works a charm, for anyone else just remember to set "Fetch Only Unread Messages" to false

  • Aion Profile Picture
    4 on at

    hello @in-a-finch ,

    can you please share your flow?
    I'm trying to do the same thing but I get an error.

    Regards,

  • in-a-finch Profile Picture
    40 on at

    Hi Aion,

     

    First step, send off the reply

    Next, create a Delay step and set it to 5 seconds

    CamCC_0-1694072130782.png

    Now when you run Get emails (V3), exchange should have had plenty of time to send the email

    Note: The more reliable search terms you use, the more accurate your result will be. This is important if your inbox might send a lot of emails in quick succession

    CamCC_1-1694072196988.png

     

    Get emails (V3) will always give you an array, even if you set the result "Top" to 1.

    I would recommend running through your results through a loop of filter to return the first email that matches the expected Conversation ID

     

    (This process also works with the Outlook connector in PowerApps)

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

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard