web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / JSON Adaptive card for...
Power Automate
Unanswered

JSON Adaptive card formatting help (mentions in teams)

(0) ShareShare
ReportReport
Posted on by 2,563

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&colon;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"
}

 

 

Categories:
I have the same question (0)
  • JimmyW Profile Picture
    2,563 on at

    Bump

  • Verified answer
    JimmyW Profile Picture
    2,563 on at

    Used @mentions trigger in power automate to generate mentions token and used that in the adaptive card instead.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard