Skip to main content
Community site session details

Community site session details

Session Id : Cqm3V8t7FUyCN6HHgasfa0
Power Automate - Building Flows
Answered

Collecting Tagged Username on Teams Post

Like (0) ShareShare
ReportReport
Posted on 3 Aug 2023 04:09:10 by

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! 

 

スライド1.PNG

 

 

 

 

  • C0porateSlave Profile Picture
    on 04 Aug 2023 at 07:33:34
    Re: Collecting Tagged Username on Teams Post

    Genius! I will try this

  • Verified answer
    ManishSolanki Profile Picture
    15,085 Super User 2025 Season 2 on 03 Aug 2023 at 05:41:25
    Re: Collecting Tagged Username on Teams Post

    Hi @C0porateSlave 

     

    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.

    ManishSolanki_0-1691039943043.png

    Next, click on 'Switch to text mode' button on the right side of "Map" parameter:

    ManishSolanki_1-1691040561662.png

     

    Now, add an expression in the expression window that will create an array of username that have been tagger:

    ManishSolanki_2-1691040647257.png

    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:

    ManishSolanki_3-1691041134040.png

    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

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete