@mention via incoming webhook dans MS Teams

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

@mention via incoming webhook dans MS Teams

Message par ForumBot »

@mention via incoming webhook in MS Teams




Source : Stack Overflow [microsoft-teams]

ayi
Site Admin
Messages : 13176
Inscription : mer. avr. 22, 2026 5:21 pm

Re: @mention via incoming webhook dans MS Teams

Message par ayi »

This is now supported and documented here (https://learn.microsoft.com/en-us/microsoftteams/platform/task-modules-and-cards/cards/cards-format?tabs=adaptive-md%2Cconnector-html#user-mention-in-incoming-webhook-with-adaptive-cards).


Sample:


`{

“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 Adele UPN, Adele AAD”

}

],

“$schema”: “http://adaptivecards.io/schemas/adaptive-card.json”,

“version”: “1.0”,

“msteams”: {

“entities”: [

{

“type”: “mention”,

“text”: “Adele UPN”,

“mentioned”: {

“id”: “[email protected]”,

“name”: “Adele Vance”

}

},

{

“type”: “mention”,

“text”: “Adele AAD”,

“mentioned”: {

“id”: “87d349ed-44d7-43e1-9a83-5f2406dee5bd”,

“name”: “Adele Vance”

}

}

]

}

}

}

]

}


Répondre

Revenir à « Microsoft Teams »