As Power Automate becomes more of a norm to make Microsoft Teams in a channel, tagging a user is one of the most frequent and obvious asks for Power Automate / Flow developer.
Here’s how you can take a User from Office 365 to a Teams channel.
Let’s look at these straight-forward steps! It’s easy.
Getting a Mention Token
First, let’s create a Mention token. Let’s see how –
- In Microsoft Teams connector in Power Automate, look for Get @mention token for a user (preview)
- This Action step asks for a User Principal (If you are using an Active Directory) or a User ID which needs to be tagged/mentioned.
- Let’s enter an User Principal or User ID here. I’m hardcoding this for visibility, your scenario would vary.
Use Token in a Post to Teams
There are different ways to Post a message to Teams. Let’s see the options.
- Below are some options to post a message to Teams
- Let’s go with Post a message (v3) (preview) for this example to post a message to Teams.
- Finally here’s how your step would end up looking with the Mention tag added in the message to be posted in ex: Open Board Meetings Teams’ General Channel.
Post in Teams
So here’s how the post will look once the Flow is run and the message is posted to Teams
Hope this was helpful! Here are some more Power Automate / Flow posts you might want to check out –
- Converting JSON to XML and XML to JSON in a Flow | Power Automate
- Visualize Adaptive Card for Teams user action within a Cloud Flow | Experimental Feature
- Create a Team, add Members in Microsoft Teams upon Project and Team Members creation in PSA / Project Operations | Power Automate
- Task Completion reminder using Flow Bot in Microsoft Teams | Power Automate
- Office 365 Outlook connector in Cloud Flows showing Invalid Connection error | Power Automate
- Import multiple Users in Office 365
- Read OptionSet Labels from CDS/Dataverse Triggers or Action Steps in a Flow | Power Automate
- Turn Teams On / Off at Org Level, provisioning users | M365 Admin Center Tip
- FormatDateTime function in a Flow | Power Automate
- Approval Process using Power Automate