cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
zsteel
Regular Visitor

For those struggling with @mention in an adaptive card/flow to MS Teams

Hi there, 
I spent a serious amount of time trying to find out how to @mention someone from dynamic content (rather than hardcoding in a name - which was not useful) in MS Teams when flow posts to a channel.


The majority of people out there are trying to stick it in json code or in some HTML - which you can - but you have to fetch with the action 'Get @mention token for MS teams' first.

You must have the Universal Principal Name as the key - so you probably will need to have 'Get User Profile' fetched in the flow PRIOR to the fetch for the token, depending on your source data. 

So when writing your flow post or adaptive card - you then use the @mention token from the dynamic content list - rather than the persons Displayname/email/whatever from AD.

You can do this as many times as needed.

Here is what mine looks like: 
power automate.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
Johnnyg
Microsoft
Microsoft

Thanks for the sharing, zsteel! This forum is mainly for 'Get help with Power Automate' questions and we recommend that you could your testing and open a blog post with your suggestions. Weclome to the Community : )
Power Automate - Blog (microsoft.com) 

Best Regards,
Johnny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
Johnnyg
Microsoft
Microsoft

Thanks for the sharing, zsteel! This forum is mainly for 'Get help with Power Automate' questions and we recommend that you could your testing and open a blog post with your suggestions. Weclome to the Community : )
Power Automate - Blog (microsoft.com) 

Best Regards,
Johnny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

zsteel
Regular Visitor

Thank you!

Feel free to delete if needed.

 

Helpful resources

Announcements
MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (70,315)