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 / The specified Teams fl...
Power Automate
Answered

The specified Teams flowbot message's message body is invalid JSON.

(0) ShareShare
ReportReport
Posted on by 3
I try to use "Post card in a chat or channel" to post messages to channel. But it raise error "The specified Teams flowbot message's message body is invalid JSON."
 
 
This is my Compose INPUTS and OUTPUTS:
 
INPUTS
[
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"body": [
{
"type": "TextBlock",
"weight": "Bolder",
"size": "ExtraLarge",
"text": "Application ccoecn-action-runners has been successfully synced"
},
{
"type": "TextBlock",
"text": "Application ccoecn-action-runners has been successfully synced at 2025-11-26T05:32:31Z."
}
],
"msteams": {
"width": "Full"
}
}
}
]
 
OUTPUTS
[
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"body": [
{
"type": "TextBlock",
"weight": "Bolder",
"size": "ExtraLarge",
"text": "Application ccoecn-action-runners has been successfully synced"
},
{
"type": "TextBlock",
"text": "Application ccoecn-action-runners has been successfully synced at 2025-11-26T05:32:31Z."
}
],
"msteams": {
"width": "Full"
}
}
}
]
 
And this is the Adaptive Card
[
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"body": [
{
"type": "TextBlock",
"weight": "Bolder",
"size": "ExtraLarge",
"text": "Application ccoecn-action-runners has been successfully synced"
},
{
"type": "TextBlock",
"text": "Application ccoecn-action-runners has been successfully synced at 2025-11-26T05:32:31Z."
}
],
"msteams": {
"width": "Full"
}
}
}
]
 
This is the OUTPUTS of "Post card in a chat or channel"
Body
{
"error": {
"code": "InvalidBotRequestMessageBody",
"message": "The specified Teams flowbot message's message body is invalid JSON."
}
}
Headers
{
"Cache-Control": "no-store, no-cache",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-islandgateway": "_prdcm001weugb0_5",
"x-ms-igw-tracking-id": "7e531bdf-57be-4e44-adc2-5d1be4c6b06d20251126053324_prdcm001weugb0_5",
"mise-correlation-id": "ced6c83d-36da-4624-a68d-8c9131f4a129",
"x-ms-request-id": "westeurope:1580f939-d00e-4942-9091-388e30e0d229",
"x-ms-correlation-request-id": "fc994979-5ec8-41b0-b779-385390a952b7",
"x-ms-flow-mobile-ios-version": "3.0.421",
"x-ms-armresiliency": "False",
"x-ms-flow-routing-request-id": "WESTEUROPE:20251126T053324Z:1580f939-d00e-4942-9091-388e30e0d229",
"Server-Timing": "x-ms-igw-upstream-headers;dur=108.2,x-ms-igw-req-overhead;dur=0.4",
"X-Content-Type-Options": "nosniff",
"x-ms-service-request-id": "7e531bdf-57be-4e44-adc2-5d1be4c6b06d",
"x-ms-correlation-id": "fc994979-5ec8-41b0-b779-385390a952b7",
"x-ms-activity-vector": "00.00.IN.09.IN.08.00",
"x-ms-client-region": "europe",
"x-ms-flavor": "Production",
"X-Ms-Workflow-Resourcegroup-Name": "720B637A655A40CF816AF22F40755C2C-DEFAULT720B637xxxxxx6AF22F40755C2C-ENV",
"x-ms-workflow-subscription-id": "7d8a3be2-6648-4250-819d-21555dabbdbb",
"x-ms-environment-id": "default-720b637a-655a-40cf-816a-f22fxxxxx2c",
"x-ms-tenant-id": "720b637a-655a-40cf-816a-f22fxxxxxc2c",
"x-ms-subscription-id": "7d8a3be2-6648-4250-819d-21xxxxxdbb",
"x-ms-dlp-re": "-|-",
"x-ms-dlp-gu": "-|-",
"x-ms-dlp-ef": "-|-/-|-|-",
"x-ms-mip-sl": "-|-|-|-",
"x-ms-au-creator-id": "e1f25a55-400d-4338-bfa1-83d7xxxx7a24",
"Timing-Allow-Origin": "*",
"x-ms-apihub-cached-response": "true",
"x-ms-apihub-obo": "false",
"Date": "Wed, 26 Nov 2025 05:33:24 GMT",
"Content-Length": "154",
"Content-Type": "application/json"
}
 
Status Code
400
 
 
Below is the configuration of Compose and "Post card in a chat or channel"
 
Compose code review
{
"inputs": [
{
"contentType": "application/vnd.microsoft.card.adaptive",
"content": {
"body": [
{
"type": "TextBlock",
"weight": "Bolder",
"size": "ExtraLarge",
"text": "@{triggerBody()?['title']}"
},
{
"type": "TextBlock",
"text": "@{triggerBody()?['text']}"
}
],
"msteams": {
"width": "Full"
}
}
}
],
"metadata": {
"operationMetadataId": "734a0335-7d37-4405-9dc4-839xxxxxc45cc"
}
}
 
"Post card in a chat or channel" code review:
 
{
"inputs": {
"host": {
"connectionName": "shared_teams",
"operationId": "PostCardToConversation",
"apiId": "/providers/Microsoft.PowerApps/apis/shared_teams"
},
"parameters": {
"poster": "Flow bot",
"location": "Channel",
"body/recipient/groupId": "cd411852-8656-4d58-a2ff-81xxxx3347a",
"body/recipient/channelId": "19:0c9b62cdxxxxxxx5ed3f9fa9c1b263@thread.skype",
"body/messageBody": "@outputs('Compose')"
},
"authentication": "@parameters('$authentication')"
},
"metadata": {
"operationMetadataId": "34433eca-a19e-49b5-ad2e-714cxxxxx09"
}
}
 
I checked the Compose OUTPUTS, it is valid Json string per https://jsonformatter.curiousconcept.com/# validation result. 
 
I also tried to replace " with ', remove blanks of the Json string. It dose not work. 
 
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    Power Platform 1919 Profile Picture
    2,217 Super User 2026 Season 1 on at
    HI ,
    you can check this link to design the teams card : Adaptive Card Designer
     
    and i think in your card json $schema and version is missing , because of that, it is saying invalid json for card. and also your json is array of json objects.

    sample working card json:
    {
        "contentType": "application/vnd.microsoft.card.adaptive",
        "content": {
            "body": [
                {
                    "type": "TextBlock",
                    "weight": "Bolder",
                    "size": "ExtraLarge",
                    "text": "Sample Text"
                }
            ],
            "msteams": {
                "width": "Full"
            }
        },
        "type": "AdaptiveCard",
        "$schema": "https://adaptivecards.io/schemas/adaptive-card.json",
        "version": "1.5",
        "body": [
            {
                "type": "TextBlock",
                "text": "Sample Card Text for Posting in Teams Channel",
                "wrap": true,
                "weight": "Bolder",
                "size": "ExtraLarge"
            }
        ]
    }.

    sample flow run.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 801

#2
Valantis Profile Picture

Valantis 602

#3
Haque Profile Picture

Haque 581

Last 30 days Overall leaderboard