Hi Internet!
I was wondering if it is possible to get tagged username from a MS Teams post
Basically, I am trying to make a Automate flow that automatically keeps track of every post on a channel
I was able to get the other data successfully but the tagged username in the post
In this channel, we mention one particular user and I was hoping to add it(tagged username) to Excel table
Please refer to the image below for my current status
Yoroshiku!
Genius! I will try this
To get the names of tagged users, we can extract the username from the mentioned array and then using join() function we can convert into comma separated string that you can save in your flow.
Next, click on 'Switch to text mode' button on the right side of "Map" parameter:
Now, add an expression in the expression window that will create an array of username that have been tagger:
Expression used in the above screenshot:
item()?['mentioned/user/displayName']
Finally, using join() function in compose action, we can get a string with comma separated user names:
Expression used for joining is:
join(body('Select'),',')
The output of compose action can be used to save the date in excel or SharePoint or any data source.
If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks
Michael E. Gernaey
497
Super User 2025 Season 2
David_MA
436
Super User 2025 Season 2
Riyaz_riz11
244
Super User 2025 Season 2