
Announcements
Hi All,
I am using this Json to create an Adaptive Card with template, the data is inline and I am trying to create dynamic columns based on the data values. This works great when I preview it in the Adaptive cards designer.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"$data": [
{
"criteria": "abC"
},
{
"criteria": "aaa"
}
],
"type": "TextBlock",
"size": "Medium",
"text": "${criteria}"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"$data": [
{
"value": "True"
},
{
"value": "False"
}
],
"type": "TextBlock",
"size": "Medium",
"text": "${value}"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"$data": [
{
"result": "1"
},
{
"result": "1"
}
],
"type": "TextBlock",
"size": "Medium",
"text": "${result}"
}
]
}
]
}
]
}My aim is to send this as an email using Power Automate. Hence, I created this flow where I am composing this json by wrapping a <script> tag around it and using the output of that compose step in the body of my email.
The issue is that the values are not rendered when the email gets sent out thru this flow. The email I receive is as below
I am expecting the templated columns to contain actual values from my data and I am not able to figure out why?
What am I missing? Kindly point out if anything is incorrect.
Thanks,
Swaroop
Hello @DSwaroop
Please check the requirement for using Adaptive Cards in Outlook
Do you fulfill these requirements?
Kind regards, John