Hi I have a design I created for an Adaptive Card sent in Teams thru power automate.
Now I want to add a "mentions" making the displayname of the user clickable and I seem to have some formatting issues and I can't figure out what I'm doing wrong.
This is an example of a working mentions card.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Hi <at>Kenichiro Nakamura</at>"
}
],
"msteams": {
"entities": [
{
"type": "mention",
"text": "<at>Kenichiro Nakamura</at>",
"mentioned": {
"id": "8:orgid:f9e0c5cb-f4ee-43d4-91e2-63524d1bacd9",
"name": "Kenichiro Nakamura"
}
}
]
}
}
This is my Adaptive card.
I would like to add the mentions part for the below part, but what ever I get formatting error saying JSON/Compose not valid etc., I think I'm missing or adding brackets in the wrong area but i cannot seem to get it right.
{
"type": "TextBlock",
"weight": "Bolder",
"text": "@{triggerOutputs()?['body/Contact/DisplayName']}",
"wrap": true
}
{
"type": "AdaptiveCard",
"body": [
{
"type": "TextBlock",
"size": "Medium",
"weight": "Bolder",
"text": "Critical Graphic Request",
"wrap": true,
"style": "heading"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "Image",
"style": "Person",
"url": "data:image/png;base64, @{outputs('Compose_-_Contact_Profile_Image')}",
"size": "Small"
}
],
"width": "auto"
},
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"weight": "Bolder",
"text": "@{triggerOutputs()?['body/Contact/DisplayName']}",
"wrap": true
},
{
"type": "TextBlock",
"spacing": "None",
"text": "Created @{outputs('Compose_-_Format_date')}",
"isSubtle": true,
"wrap": true
}
],
"width": "stretch"
}
]
},
{
"type": "FactSet",
"facts": [
{
"title": "Title",
"value": "@{triggerOutputs()?['body/Title']}"
},
{
"title": "Due date",
"value": "@{formatDateTime(triggerOutputs()?['body/DueDate'], 'dd MMMM yyyy')}"
},
{
"title": "Priority",
"value": "@{triggerOutputs()?['body/Priority/Value']}"
},
{
"title": "Contact email",
"value": "@{triggerOutputs()?['body/Contact/Email']}"
}
],
"separator": true,
"spacing": "ExtraLarge"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.4"
}