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 Platform Community / Forums / Power Automate / AutoReply to O365 Group
Power Automate
Unanswered

AutoReply to O365 Group

(0) ShareShare
ReportReport
Posted on by 2

Hello Gentlemen,

I am trying to create an AutoReply to an O365 Group. The Group is used to receive outside orders, so multiple emails from the same user/company email could be possible in a 24 hour period. The users of the group would like a SINGLE reply to each new email that has been received. Currently I have created a flow that will generate a reply, but it goes into a loop by replying to itself.

How can I reply ONCE to a newly created conversation (thread??) in the group?

John_S_0-1621268847853.png

Thank you for your assistance in this matter - John

Categories:
  • v-duann-msft Profile Picture
    Microsoft Employee on at

    Hi @John_S 

     

    Thank you for posting.

     

    According to your description, you would like to enable autoreply for O365 group but get looped email infinitely. If any misunderstanding, please kindly let me know.

     

    I tested from my end and got exactly same result as yours. Based on the O365 group mail connector, I don’t think it’s feasible in flow.

     

    From my opinion, maybe you can try powershell to enable auto-reply configuration for O365 groups if you want.

     

    Set-MailboxAutoReplyConfiguration -Identity O365group -AutoReplyState Enabled -InternalMessage "Internal auto-reply message." -ExternalMessage "External auto-reply message."

    https://docs.microsoft.com/en-us/powershell/module/exchange/set-mailboxautoreplyconfiguration?view=exchange-ps

    https://techcommunity.microsoft.com/t5/office-365/o365-group-autoreply-to-external-email-address/m-p/1573778

     

    Hope the content above may help you.

     

    Best regards,

    Anna

  • John_S Profile Picture
    2 on at

    Hi Anna,

    I have found a way to limit the Multiple Reply problem to only one Thread. The following will not reply to every thread in the Group, but will only reply to the one which receives a new email.

    John_S_0-1621516121802.png

    So I remain with a few issues:

    1) What is the correct terminology? What is a conversation? Thread? Post? Group? Yes I have read the docs, but there is no clear definition. Please ELI5 if you can. 

    2) Variables: what is available? How do I extract and compare them? I found this (https://powerusers.microsoft.com/t5/Building-Flows/Stop-flow-adding-apply-to-each/m-p/142815#M14232) to stop the looping and I kind of get it, but I have not been successful in accessing any variables.

    3) Going with the above, TimeStamps. Looking at the returned data from the "New Email Arrives to a Group" trigger, I get the following:

    {"headers":{"Transfer-Encoding":"chunked","Strict-Transport-Security":"max-age=31536000","request-id":"f5e36ccc-98d1-480d-8499-849fe40109f4","client-request-id":"f5e36ccc-98d1-480d-8499-849fe40109f4","x-ms-ags-diagnostic":"{\"ServerInfo\":{\"DataCenter\":\"West US\",\"Slice\":\"E\",\"Ring\":\"5\",\"ScaleUnit\":\"002\",\"RoleInstance\":\"BY1PEPF00002593\"}}","Timing-Allow-Origin":"*","x-ms-apihub-cached-response":"true","retry-after":"60","Cache-Control":"private","Date":"Thu, 20 May 2021 01:18:50 GMT","Location":"https://unitedstates-002.azure-apim.net/apim/office365groupsmail/shared-office365grou-a38bb5fb-3acf-459b-88b7-8684-7572c825/trigger/v1.0/groups/6b6fd465-dc88-4383-a414-0c308f3e2cb6/conversations?%24select=id%2clastDeliveredDateTime&%24expand=threads(%24select%3did%3b%24expand%3dposts(%24select%3did%2ccreatedDateTime))&%24orderby=lastDeliveredDateTime+desc&NotFirstCall=true&TriggerState=AAMkADBjNTY3YTE5LWNlZjQtNDFmOS1iOTU0LTQ1ZDhmMWNmMDU1MQBGAAAAAABV6U8PpQVsSawyDJpdNznDBwDd0VYaAwk0TLOtrLG05FwjAAAAAAEMAADd0VYaAwk0TLOtrLG05FwjAAAn1PLJAAA%3D%2CAAMkADBjNTY3YTE5LWNlZjQtNDFmOS1iOTU0LTQ1ZDhmMWNmMDU1MQBGAAAAAABV6U8PpQVsSawyDJpdNznDBwDd0VYaAwk0TLOtrLG05FwjAAAAAAEMAADd0VYaAwk0TLOtrLG05FwjAAAn1PLIAAA%3D&%24filter=lastDeliveredDateTime%20gt%202021-05-20T01%3A16%3A34Z","Content-Type":"application/json; odata.metadata=minimal; odata.streaming=true; IEEE754Compatible=false; charset=utf-8","Content-Length":"796"},"body":{"id":"AAQkADBjNTY3YTE5LWNlZjQtNDFmOS1iOTU0LTQ1ZDhmMWNmMDU1MQAQAHVAm5n0lchDh8thPuNwhtI=","lastDeliveredDateTime":"2021-05-20T01:16:34Z","threads":[{"id":"AAQkADBjNTY3YTE5LWNlZjQtNDFmOS1iOTU0LTQ1ZDhmMWNmMDU1MQMkABAAdUCbmfSVyEOHy2E_43CG0hAAdUCbmfSVyEOHy2E_43CG0g==","posts":[{"@odata.etag":"W/\"CQAAABYAAADd0VYaAwk0TLOtrLG05FwjAAAn2Ijd\"","id":"AAMkADBjNTY3YTE5LWNlZjQtNDFmOS1iOTU0LTQ1ZDhmMWNmMDU1MQBGAAAAAABV6U8PpQVsSawyDJpdNznDBwDd0VYaAwk0TLOtrLG05FwjAAAAAAEMAADd0VYaAwk0TLOtrLG05FwjAAAn1PLJAAA=","createdDateTime":"2021-05-20T01:16:34Z","changeKey":"CQAAABYAAADd0VYaAwk0TLOtrLG05FwjAAAn2Ijd"}]}]}}

     

    Looking at this information: https://docs.microsoft.com/en-us/connectors/office365groupsmail/ gives me hope, but is confusing as to how I can access some of it.

    So bottom line: I am trying to create a flow that will send a reply email when a new "conversation" (to use the Outlook term) is started. If the "conversation" contains two or more emails then do not reply.

    Thank you in advance for any insight that you can provide.

  • VasyaBukin Profile Picture
    51 on at

    The AutoReplyGroup flow has the following features:

    1. An auto-reply is sent to the Reply-To: address if present, or to the From: address otherwise.
    2. The subject line of an auto-reply message consists of the customized prefix ("Confirmation:", "Autoreply:", etc.) and the subject line of the original message.
    3. The body of an auto-reply message may include the original message text.
     
     

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 377

#2
11manish Profile Picture

11manish 302 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 130

Last 30 days Overall leaderboard