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 / Extracting @mentions f...
Power Automate
Answered

Extracting @mentions from Teams to Excel

(0) ShareShare
ReportReport
Posted on by 6

I am building a flow that "when keywords are mentioned in a Teams channel", a row is added to an Excel table extracting data from that Teams message. We are using @mentions to mention people in our channel, and I am wondering if it's possible to extract that user (will always be a single @mention) into a standalone column in excel. Right now I am just seeing the option to extract the entire message. 

Categories:
I have the same question (0)
  • Verified answer
    Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

     

    This is need is new to me, so I did a little research... 

    🦉Even though the keywords trigger doesn't have an asterisk next to teams & channel, it wouldn't let me run it without those populated. (Might not be news to you, though!)

    🦉To get the mentions, you need to "Get Message Details". This has two things of note, though: 

    1) It will turn into an "Apply to Each" ... which is fine. Just a note.

    2) You will need a condition to evaluate two different types of messages: one for messages themselves, and, one for replies to messages. They're handled differently. 

    🦉Grab the output from the Get Message Details (run a test of it, so you can use this), and cram it into a Parse JSON. From here, you can access the value called "Mentions" which holds what you need - to get the display name from the mention, use this (works for a single instance): body('Parse_JSON')?['mentions'][0]?['mentioned']?['user']?['displayName']

    That'll get you the user, which you can then plop into your Excel sheet.


    Does that help? Do you need instruction to get it into Excel itself?

    Cheers,


    Rhia

     

  • Ajjohn14 Profile Picture
    6 on at

    Rhia, Thank you SO much!! This works perfectly for me, and I appreciate your detail in your message.

  • BunnyGo Profile Picture
    2 on at

    I'm trying to do exactly this as well, but having trouble understanding the solution. Could you share some more details of what you did to make this work? Would very much appreciate it.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard