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 / When a new email arriv...
Power Automate
Answered

When a new email arrives (V3) - message id, internet message id, conversation id explanation?

(0) ShareShare
ReportReport
Posted on by 43

Hello

I'm working on automating the tracking of emails in a SharePoint list using Power Automate.

Here's what I'm trying to do:

  • When a new email arrives, I want to:

    • Store the email body in a SharePoint list

    • Save the full email (.eml) in a SharePoint document library

If someone replies to an email that was already processed and stored, I don’t want to create a duplicate record. Instead, I want my flow to detect that it's part of an existing thread.

There are three types of IDs available in the email metadata:

  • Message ID
  • Internet Message ID
  • Conversation ID
Which of these is best to use for identifying an existing email thread, so that I can avoid duplicate records and maintain proper tracking?
 

Logic I want to build:

When a new email arrives:
If the email/thread already exists in SharePoint:
- Store the email in the document library
- (Do not create a new list record)
Else:
- Create a new record in the SharePoint list
- Save the email in the document library

I'm essentially trying to track the email thread, not just individual messages.

Any advice or best practices would be appreciated — I’ve found that most documentation and YouTube videos don’t cover this kind of thread-tracking logic

Thanks in advance!

Categories:
I have the same question (1)
  • Suggested answer
    Power Platform 1919 Profile Picture
    1,898 on at
    HI @,
    Use Conversation ID to detect and group replies into an existing thread - it remains constant for all messages in that conversation, whereas each Message ID (or Internet Message ID) is unique to a single message.
    check this link which might help: SharePoint List/Ticketing System- How to keep reply emails under the same Item - SharePoint Stack Exchange
     

    Please give the mentioned solution a try and let me know whether it works for you.
    If it solves your issue, feel free to mark this thread as answered.
    Please make sure to like the response!
    Thanks!
    - Hemanth Sai

  • Verified answer
    stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    please use Conversation ID for that, you can add  columns in the document library for other ids in case for the future. We use this quite often. 
    Note: Some latest message may lack of enough messages, since some people like to delete the old messages.
    Here is a link for your reference from Exchange Online and Exchange development Doc:
     

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard