cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
deepansh_saxena
Helper I
Helper I

Common ID in parent email and its child emails in mail trail of Outlook

I have request to create SharePoint item when new email (Parent email) arrives in Outlook. I achieved this with MS Flow.

Challenge is if a reply is sent on that email (Parent email) how flow will identify SharePoint item is already existing?

Thanks...

2 ACCEPTED SOLUTIONS

Accepted Solutions
ScottShearer
Super User III
Super User III

@deepansh_saxena 

About all you can do is to add a column to the SharePoint list for the Conversation ID and populate it.  When a new email arrives, check the SharePoint list for the conversation ID - you'll want to use an OData filter for this.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Thank You  Scott Shearer. Your solution worked for me. To help others below is the flow that I created.First.pngSecond.pngThird.pngFourth.png

 

In the condition put below expression:

length(body('Get_items')?['value'])
Fifth.png

View solution in original post

4 REPLIES 4
ScottShearer
Super User III
Super User III

@deepansh_saxena 

About all you can do is to add a column to the SharePoint list for the Conversation ID and populate it.  When a new email arrives, check the SharePoint list for the conversation ID - you'll want to use an OData filter for this.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

Thank You  Scott Shearer. Your solution worked for me. To help others below is the flow that I created.First.pngSecond.pngThird.pngFourth.png

 

In the condition put below expression:

length(body('Get_items')?['value'])
Fifth.png

View solution in original post

@ScottShearer 
Somehow my Outlook was not accepting threads based on Conversation ID, I refreshed my profile and it started working.

 

Hi Scott,

My ConversationID is bringing different IDs for same conversation.

deepansh_saxena_0-1593588101778.png

To test I changed my flow to add new record for every email that arrives, this I did to check what ConversationID I am getting.

I sent 1st email to myself, when it arrived in my inbox I replied to it to my email, I got different IDs in both the cases.

Any idea what went wrong?

Thanks & Regards,

Deepansh Saxena 

@ScottShearer 

If user changes subject line in the same email thread conversation ID changes and flow creates a new record in SP List. How can we handle this situation. 

Thanks,

Deepansh Saxena

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,437)