To mention a Microsoft Teams “Tag” in an Adaptive Card, you need to use the msteams
property within the card’s JSON payload. Here’s an example of how you can do this:
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "Hello @<at>TAG_NAME</at>!"
}
],
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>TAG_NAME</at>",
"mentioned": {
"id": "TAG_ID",
"name": "TAG_NAME"
}
}
]
}
}
In this example:
- Replace
TAG_NAME
with the name of your tag. - Replace
TAG_ID
with the ID of your tag.