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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

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

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,728)