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

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (4,058)