Forum Discussion
Get User email in Mention Action Card in Incoming Webhook in Teams Channel
- Jul 08, 2022
suriya690 - You can refer below json to implement @mention using incoming webhook.
{ "type": "message", "attachments": [ { "contentType": "application/vnd.microsoft.card.adaptive", "content": { "type": "AdaptiveCard", "body": [ { "type": "TextBlock", "size": "Medium", "weight": "Bolder", "text": "Sample Adaptive Card with User Mention" }, { "type": "TextBlock", "text": "Hi <at>Adele UPN</at>, <at>Adele Azure AD</at>" } ], "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "version": "1.0", "msteams": { "entities": [ { "type": "mention", "text": "<at>Adele UPN</at>", "mentioned": { "id": "AdeleV@contoso.onmicrosoft.com", "name": "Adele Vance" } }, { "type": "mention", "text": "<at>Adele Azure AD</at>", "mentioned": { "id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd", "name": "Adele Vance" } } ] } } }] }
Thanks,
Prasad Das
--------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
suriya690 - You can refer below json to implement @mention using incoming webhook.
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Sample Adaptive Card with User Mention"
},
{
"type": "TextBlock",
"text": "Hi <at>Adele UPN</at>, <at>Adele Azure AD</at>"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>Adele UPN</at>",
"mentioned": {
"id": "AdeleV@contoso.onmicrosoft.com",
"name": "Adele Vance"
}
},
{
"type": "mention",
"text": "<at>Adele Azure AD</at>",
"mentioned": {
"id": "87d349ed-44d7-43e1-9a83-5f2406dee5bd",
"name": "Adele Vance"
}
}
]
}
}
}]
}
Thanks,
Prasad Das
--------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
- suriya690Jul 08, 2022Copper Contributor
Prasad_Das-MSFT I need the same scenario using "type: MessageCard". Please respond ASAP.
- Prasad_Das-MSFTAug 12, 2022
Microsoft
suriya690 -We got confirmation from engineering team that " Currently message (legacy) cards don’t support user at mentions".
To achieve your requirements, we recommend you give your feedback here. - Prasad_Das-MSFTJul 08, 2022
Microsoft
suriya690 - We are checking the possibility with engineering team if its supported or not for "type: MessageCard". We will inform you once we get any update thanks!