Can't figure out how to use the @mention via these classes. #7658
Unanswered
ClintBritt
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I can create my own Json to send via a WebHook that supports @mention, Works OK, but I can not seem to be able to form the same Json using AdaptiveCards class:
The following works perfect for me, just need to know haow to use the SDK to do this same thing!!!
{
"type": "message",
"attachments": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Large",
"weight": "Bolder",
"text": "BUILD NOTIFICATION",
"Color": "Good"
},
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"Color": "Accent",
"text": "A build was kicked off at "
},
{
"type": "TextBlock",
"text": "This is a build notification for: name1, name2"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0",
"msteams": {
"entities": [
{
"type": "mention",
"text": "name1",
"mentioned": {
"id": "name1@somecompany.com",
"name": "name1"
}
},
{
"type": "mention",
"text": "name2",
"mentioned": {
"id": "name2@somecompany.com",
"name": "name2"
}
}
}
Beta Was this translation helpful? Give feedback.
All reactions