Himanshu Shukla - We have tested this using below card and it's working correctly at our end.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.6",
"body": [
{
"type": "TextBlock",
"text": "<at>Alex Wilber</at> created the incident"
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Execute",
"title": "Submit",
"verb": "submit"
}
]
}
],
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>Alex Wilber</at>",
"mentioned": {
"id": "User ID",
"name": "Alex Wilber"
}
}
]
}
}
To include a mention in an Adaptive Card, your app needs to include the following elements:
-
<at>username</at>
in the supported Adaptive Card elements. - The
mention
object inside of anmsteams
property in the card content includes the Teams user ID of the user being mentioned. - The
userId
is unique to your bot ID and a particular user. It can be used to @mention a particular user. TheuserId
can be retrieved using one of the options mentioned in get the user ID.
You have not use <at>username</at> tag correctly and User Id also wrong. Please use <at> tag and correct user ID and check again.