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 / Auto response for shar...
Power Automate
Suggested Answer

Auto response for shared mail box.

(0) ShareShare
ReportReport
Posted on by
So I'm trying to set up an auto response for shared mail box that works like this:
Email comes in from customer to shared mail box. An auto reply is sent on the same email chain from the shared mailbox.
Customer replies to said chain and no auto response.
If a new email chain is started that triggers the auto responce.

I keep getting some of this to work but never all of it, closes i got is the auto-response is being sent on every email.  

Can anyone advise on the proper set up for this?
Categories:
I have the same question (0)
  • Pstork1 Profile Picture
    68,757 Most Valuable Professional on at
    To do something like this you'll need to store something that identifies the email chain when it first begins in a data source.  Then when a new email arrives check that information against the data source. If its not there then its a new chain so send the auto reply and store the identifier in the data source.  In CRM this used to be handled by putting some kind of a GUID identifier in the AutoReply Subject line.  Then you could check for the GUID in a reply.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • ViktorIvanidze Profile Picture
    25 on at
    Email message may contain the In-Reply-To and References properties. You can retrieve them using a GRAPH request.
     
  • Suggested answer
    S-Venkadesh Profile Picture
    943 Moderator on at
     
    To determine whether an email is a new thread or part of an existing mail chain, you can check for the presence of the divRplyFwdMsg element in the email body.
    Suggested approach
    • Trigger: When a new email arrives (V3)
    • Add a Compose action with the following expression:
    contains(triggerBody()?['body'], 'divRplyFwdMsg')

    Interpretation
    • True → The email is part of a reply/forward mail chain
    • False → The email is a new email (new thread)

     
    I hope this information helps! If it does, please consider giving a 👍.
    If this solved your issue, please mark it as ✅ Verified Answer
    Best regards,
    S-Venkadesh
     
  • Pstork1 Profile Picture
    68,757 Most Valuable Professional on at
    One suggested alteration to S-Venkadesh's solution.  Instead of using a Compose you could add this check as a Trigger condition.  Then the flow wouldn't even run if the message was a reply.

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     
  • ViktorIvanidze Profile Picture
    25 on at
     .Hi @S-Venkadesh,
     
    what if a message body  format is plain text or RTF? As far as I understand, you cannot get divRplyFwdMsg then, correct?
     
  • ViktorIvanidze Profile Picture
    25 on at
     
    use this GRAPH request to distinguish between original email and reply:
     
    https://graph.microsoft.com/v1.0/me/mailfolders/inbox/messages?$select=ConversationId,singleValueExtendedProperties,Categories&$expand=singleValueExtendedProperties($filter=id+eq+'STRING 0X1A' or id+eq+'STRING 0X1035' or id+eq+'STRING 0X1039')
    Here 'STRING 0X1039' is PR_INTERNET_REFERENCES 
     
    Only replied and forwarded messages have PR_INTERNET_REFERENCES field.
     
    Checking the MAPI property PR_INTERNET_REFERENCES is most reliable way to detect replies and forwards.

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

#2
Tomac Profile Picture

Tomac 267 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard