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
Community Support
Community Support

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
Community Support
Community Support

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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Users online (2,116)