I inherited a functioning flow that users have requested be reused to create adaptive cards for other purposes.
Since it was relatively straightforward editing, I simply modified it directly in the Message property of the Generate Adaptive card and wait for response step.
The card works. It worked before and it works for me/us in the flows it is used in.
Then I was presented with a more interactive use case where I want to add a couple buttons and content that's going to take a little more effort. So, off to adaptivecard.io I go.
Only to discover that my JSON is invalid. EVERY single validator I put it into fails despite the fact that it generates a functioning card and responds to the user response. So since it's invalid, I can't simply paste it into the designer and modify.
Anyone have a clue what is wrong? The validators all tell me the problem is at the very end of the body. It seems like the problem is the trailing comma at the end of the last text block. But removing that causing it to hard fail and it won't even tell me where.
My hope is that I can fix this and then use this schema in the Designer tool to modify and then paste back into the flow step.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "TextBlock",
"text": "@{outputs('Get_SPIFF_Submitter')}",
"id": "acTitle",
"spacing": "Medium",
"horizontalAlignment": "Left",
"size": "ExtraLarge",
"weight": "Bolder",
"color": "Accent"
},
{
"type": "TextBlock",
"text": "Submitted a SPIFF Approval Request ",
"id": "acHeaderTagLine"
},
{
"type": "TextBlock",
"text": "**SPIFF Name:** @{outputs('Get_SPIFF_Name')}",
"size": "Medium",
"id": "acSpiff",
"separator": true
},
{
"type": "TextBlock",
"text": "**SPIFF Number:** @{outputs('Get_Record_ID_for_url')}",
"id": "acSPIFFID"
},
{
"type": "TextBlock",
"text": "**SPIFF Details:** @{outputs('Get_Details')}",
"id": "acDetails"
},
],
"actions": [
{
"type": "Action.Submit",
"title": "Accept",
"id": "btnSubmit"
}
]
}