cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TrulsB
Advocate II
Advocate II

@mention to tags in Teams

Im using adaptive card and post a adaptive card in a channel in teams then a nye item is created in a Sharepoint list. 

 

For the actual Team we are using Tags, and i like to use @mention on a Tag in the adaptive card.  I have tried a few examples, but with no luck. 

 

Any idea how to use tags in adaptive cards in Teams for @menation for the tagged users ?

 

 

1 REPLY 1
Expiscornovus
Super User
Super User

Hi @TrulsB,

 

There should be a Get "mention token for a tag action which you can use. After that you can use that token in the body of your adaptive card.


Try something like below.

{
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "type": "AdaptiveCard",
    "version": "1.2",
    "body": [
        {
            "type": "TextBlock",
            "size": "Medium",
            "weight": "Bolder",
            "text": "Testing Tag Mentioning"
        },
        {
            "type": "TextBlock",
            "text": "Hello World! @{outputs('Get_an_@mention_token_for_a_tag')?['body/atMention']}!",
            "wrap": true
        }
    ]
}

 

tagmentioning.PNG

 

That should give you something like below.

 

tagmentioning02.PNG

 



Happy to help out! 🙂

Interested in more #PowerAutomate #SharePointOnline or #PowerVirtualAgents content?
Visit my blog, Subscribe to my YouTube channel or Follow me on Twitter


Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Users online (2,914)