
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2",
"body": [
{
"type": "TextBlock",
"text": "New Service Now Ticket ",
"wrap": true,
"size": "Large",
"weight": "Bolder",
"horizontalAlignment": "Center"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Image",
"url": "https://dirsharedservices.service-now.com/STS_Programs.png",
"size": "Medium",
"horizontalAlignment": "Center",
"separator": true
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Ticket task number",
"wrap": true
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "sctaks item",
"wrap": true
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Assignment Group",
"wrap": true
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "PCM-PMO-Azure Implementation",
"wrap": true
}
]
}
]
},
{
"type": "TextBlock",
"text": "Go to ticket",
"selectAction": {
"type": "Action.OpenUrl",
"url": "@{substring(variables('URL to ticket'), 1, sub(length(variables('URL to ticket')),2))}"
},
"spacing": "Medium",
"horizontalAlignment": "Center",
"size": "Medium",
"weight": "Bolder"
}
],
"backgroundImage": {
"horizontalAlignment": "Center"
}
}
I am currently using the above adaptive card to post into a teams channel. The url resolves to the url I want but when I run the flow I get the following error:
https://adaptivecards.io/designer/
and no errors are brought up, power automate doesn't give any line numbers or issues that I can utilize to pin point the specific area.
I also tried the card in an HTTP post request in visual studio and it worked without any issues related to the formatting not sure what is wrong here.