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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Having an issue with p...
Power Automate
Unanswered

Having an issue with power automate chat

(0) ShareShare
ReportReport
Posted on by

{
"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:  

{
  "error": {
    "code""BadRequest",
    "message""InvalidParameter",
    "innerError": {
      "message""Invalid format of cards property",
      "code""1",
      "innerError": {},
      "date""2023-11-08T19:20:49",
      "request-id""65d9523f-a03a-4e25-b7c1-3bf39ea3752c",
      "client-request-id""65d9523f-a03a-4e25-b7c1-3bf39ea3752c"
    }
  }


I have double checked the formatting in 

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. 






Categories:
I have the same question (0)

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard