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 Reply to MS Teams...
Power Automate
Suggested Answer

Auto Reply to MS Teams chat Once

(0) ShareShare
ReportReport
Posted on by 505
I am looking for a way to auto reply to only the first message in MS Teams. It sounds like I need a SharePoint list or Excel file to track the incoming message with a condition but I cannot seem to work through this. I am hoping someone else has done this and can help me develop it. 
 
Thanks
Categories:
I have the same question (0)
  • Suggested answer
    SwatiSTW Profile Picture
    741 Super User 2025 Season 2 on at
    You can achieve this with below steps
    1. Go to SharePoint and create a new list. Name it "TeamsMessageTracker". Add these columns:
      • Title: This will store the user’s display name.
      • User ID: This will store the user’s unique Teams ID.
      • Replied: This will be a Yes/No checkbox to track if a reply has been sent.
    2. Open Power Automate and create a new flow.
    3. Select the trigger "When a new message is posted in a channel" if you want to track channel messages. If you want to track personal chats, use the trigger "When a new message is posted in a chat". Note that personal chat tracking requires a premium license.
    4. After the trigger, add an action called "Get items" for SharePoint. Configure it to check your SharePoint list (TeamsMessageTracker) and filter by the User ID of the person who sent the message. This will check if the user already exists in the list.
    5. Add a condition. If the user does not exist in the list, continue with the next steps. If the user exists, stop the flow.
    6. If the user does not exist in the list, add an action to send an auto-reply. Use the action "Post a message in a chat or channel". Write your reply, for example: "Thank you for your message! I'll get back to you shortly."
    7. Add another action to create a new item in the SharePoint list. Save the user’s display name in the Title column, their unique Teams ID in the User ID column, and set Replied to Yes.
    8. End the flow after these steps.
    This way, the flow will only reply to the first message from a user, and it will track users in the SharePoint list to avoid replying multiple times. If you prefer not to use SharePoint, you can do the same with an Excel file instead.
     
  • send2mark Profile Picture
    505 on at
    User name does not seem to be an option for dynamic content. I am currently trying to get the "Message Conversation ID" to work, but it doesn't seem to be working.  

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