
Announcements
I am using a tutorial in order to learn about adaptive cards. I'm triggering an Outlook email via a button. The problem is that when the email arrives, the JSON shows as text and not as a functional adaptive card.
Does anyone have any idea of where I should start to find my solution. Below is a pic of the card as well as the code -- which shows exactly the same way in Outlook as text -- I've tried with it coded as HTML and as not HTML since I did see that suggested somewhere.
Thanks so very much for your help.
{
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "Additional Feedback Required",
"size": "Medium",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['additionalInfo']}",
"wrap": true
},
{
"type": "FactSet",
"facts": [
{
"title": "Suggestion ID",
"value": "VARIABLE_HERE"
},
{
"title": "Repond By",
"value": "VARIABLE_HERE"
}
]
},
{
"type": "Input.Text",
"placeholder": "Response",
"id": "responseText",
"isMultiline": true,
"separator": true
},
{
"type": "ActionSet",
"actions": [
{
"type": "Action.Http",
"title": "Submit Response",
"method": "POST",
"id": "submit",
"url": "\"\"",
"body": "{\\\"response\\\":\\\"{{responseText.value}}\\\",\\\"suggestionID\\\":@{triggerBody()?['suggestionID']}}",
"headers": [
{
"name": "Authorization",
"value": "\"\""
},
{
"name": "Content-Type",
"value": "application/json"
}
]
}
]
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json"
}
Hi!
Try this
<script type=”application/adaptivecard+json”> your json here </script>
Hope this helps