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 / Collect the username o...
Power Automate
Suggested Answer

Collect the username of each interaction in Teams Channel

(0) ShareShare
ReportReport
Posted on by
Hi, 
 
I want to collect all the usernames of people that is interacting in a Teams channel and put them in a Excel table (adding a new row in each new interaction).
 
However, it's collecting the usernames only of the new posts. I want to collect specially the usernames of the post replies (which is most all the interactions).
 
 
Could someone help me fix this? 
Guess: some function connected to Teams is not recognizing the ID of post replies, maybe the collecting info method is wrong
 
Thanks in advance, 
Leticia
 
 
 
Functions used:
 
Get User Profile(V2): triggerOutputs()?['body/from/user/id']
 
User Name: outputs('Get_user_profile_(V2)')?['body/displayName']
Timestamp: formatDateTime(triggerOutputs()?['body/createdDateTime'], 'yyyy-MM-dd HH:mm')
Message Type: if(empty(triggerOutputs()?['body/replyToId']), 'New Post', 'Reply')
 
 
 
I have the same question (0)
  • Suggested answer
    CU11021143-0 Profile Picture
    59 on at
    Your flow only collects new posts because the Teams trigger does not detect replies at all — this is a known limitation of “When a new channel message is added”, which only fires for root messages, not thread replies.
    Microsoft confirms there is no trigger in Power Automate that can capture replies directly.

    To capture usernames from replies, you must switch to a different method:
     Use a Recurrence flow + Graph API to list channel messages with $expand=replies, then log both posts and replies into Excel. 

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard