How many time have I seen people want to @mention someone in Microsoft Teams using Power Automate? Many Time!
Why to mention someone in Microsoft Teams
Table of Contents
Ok, this is such a common scenario where you want to use Microsoft Teams to alert a person while your flow is running.
Quite a lot of consultancies for example organise stand-ups in Teams by sending a daily post to a team. Being able to alert people that the daily post is there can be quite important.
Or for example a long running flow does all sorts of things and then some people need to be alerted that the process is complete or that it has failed.
Running a flow to mention someone in Microsoft Teams
Today I noticed the Get @mention token for a user action. Why would this action exist if you can’t mention a person?

The development steps
Well, it is as simple as selecting the action Get @mention token for a user and then select the user that you want to mention.

Then use the Pots a message(V3) to post the action and use @mention from the dynamic content.
And that is it!
Advanced mode
It’s time for the bonus. Did you notice in the above screenshot the advanced mode option on the Get @mention token for a user action? The little icon with the two arrows.

In advanced mode you can supply an email address for a user. I tried to see if I could put extra logic in their but that doesn’t seem to be possible yet.
This has been such a missing feature for so long that this is a great additional action to the Microsoft Teams connector in Power Automate. One of my posts from 2018 already mentioned the missing @mention feature but now it is there.
Discover more from SharePains
Subscribe to get the latest posts sent to your email.