Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Shared Flow can only be used by the author - Error 400 "The respone is not in a JSON format."

(1) ShareShare
ReportReport
Posted on by 9

I have created an Flow that should mimic the reminder function of Slack within Teams.

Trigger: For a selected message in Teams

Logic: Post a message to Flow Bot and confirm, that the reminder was set + some things to delay the notification and get further info on the original message.

End: Post a notification to the initiator's feed

The Flow works perfect, when used by myself, but throws an error at the last step, when shared (execute only) or sent (full access) to another user. Even the first confirmation message (I'll remind you later about this message) is sent to the users Flow Bot chat. But the Feed notification at the end does always result in a 400 error.

Input of the last step (not working, executed by someone else):

Spoiler (Highlight to read)
{
    "host": {
        "connectionReferenceName""shared_teams",
        "operationId""PostFeedNotification"
    },
    "parameters": {
        "poster""Flow bot",
        "notificationType""groupchat",
        "body/recipient""prename.surname@tenant.de",
        "body/previewText""Custom Message",
        "body/chatRecipient""19:cfa7559a-99b0-5dba-8a28-51262d084384_358f0194-6b0e-4dd3-af35-c24fe8a9ec87@unq.gbl.spaces",
        "body/messageId""1645463576891"
    }
}
{    "host": {        "connectionReferenceName": "shared_teams",        "operationId": "PostFeedNotification"    },    "parameters": {        "poster": "Flow bot",        "notificationType": "groupchat",        "body/recipient": "prename.surname@tenant.de",        "body/previewText": "Custom Message",        "body/chatRecipient": "19:cfa7559a-99b0-5dba-8a28-51262d084384_358f0194-6b0e-4dd3-af35-c24fe8a9ec87@unq.gbl.spaces",        "body/messageId": "1645463576891"    }}

Output of the last step (not working, executed by someone else):

Spoiler (Highlight to read)
{
    "statusCode"400,
    "headers": {
        "Pragma""no-cache",
        "x-ms-request-id""germanywestcentral:e8715ce4-a0e8-454b-8bff-981ff6648639",
        "x-ms-correlation-request-id""e8715ce4-a0e8-454b-8bff-981ff6648639",
        "x-ms-flow-mobile-ios-version""1.3.0",
        "x-ms-flow-routing-request-id""GERMANYWESTCENTRAL:20220221T171702Z:e8715ce4-a0e8-454b-8bff-981ff6648639",
        "Strict-Transport-Security""max-age=31536000; includeSubDomains",
        "X-Content-Type-Options""nosniff",
        "Timing-Allow-Origin""*",
        "x-ms-apihub-cached-response""true",
        "x-ms-apihub-obo""true",
        "Cache-Control""no-cache",
        "Date""Mon, 21 Feb 2022 17:17:02 GMT",
        "Content-Length""259",
        "Content-Type""application/json",
        "Expires""-1"
    },
    "body": {
        "error": {
            "code"400,
            "source""germany-001.azure-apihub.net",
            "clientRequestId""35911701-860b-43f3-ad2b-69b6e42de593",
            "message""The response is not in a JSON format.",
            "innerError""Cannot read server response."
        }
    }
}
{    "statusCode": 400,    "headers": {        "Pragma": "no-cache",        "x-ms-request-id": "germanywestcentral:e8715ce4-a0e8-454b-8bff-981ff6648639",        "x-ms-correlation-request-id": "e8715ce4-a0e8-454b-8bff-981ff6648639",        "x-ms-flow-mobile-ios-version": "1.3.0",        "x-ms-flow-routing-request-id": "GERMANYWESTCENTRAL:20220221T171702Z:e8715ce4-a0e8-454b-8bff-981ff6648639",        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",        "X-Content-Type-Options": "nosniff",        "Timing-Allow-Origin": "*",        "x-ms-apihub-cached-response": "true",        "x-ms-apihub-obo": "true",        "Cache-Control": "no-cache",        "Date": "Mon, 21 Feb 2022 17:17:02 GMT",        "Content-Length": "259",        "Content-Type": "application/json",        "Expires": "-1"    },    "body": {        "error": {            "code": 400,            "source": "germany-001.azure-apihub.net",            "clientRequestId": "35911701-860b-43f3-ad2b-69b6e42de593",            "message": "The response is not in a JSON format.",            "innerError": "Cannot read server response."        }    }}

Input of the last step (working, executed by myself):

Spoiler (Highlight to read)
{
    "host": {
        "connectionReferenceName""shared_teams",
        "operationId""PostFeedNotification"
    },
    "parameters": {
        "poster""Flow bot",
        "notificationType""groupchat",
        "body/recipient""my.name@tenant.de",
        "body/previewText""Custom Message",
        "body/chatRecipient""19:71fe957f-75ed-40e6-b48c-e70384d07fa3_9263a157-1e3e-481f-995f-0c588478cd38@unq.gbl.spaces",
        "body/messageId""1645544116874"
    }
}
{    "host": {        "connectionReferenceName": "shared_teams",        "operationId": "PostFeedNotification"    },    "parameters": {        "poster": "Flow bot",        "notificationType": "groupchat",        "body/recipient": "my.name@tenant.de",        "body/previewText": "Custom Message",        "body/chatRecipient": "19:71fe957f-75ed-40e6-b48c-e70384d07fa3_9263a157-1e3e-481f-995f-0c588478cd38@unq.gbl.spaces",        "body/messageId": "1645544116874"    }}

Output of the last step (working, executed by myself):

Spoiler (Highlight to read)
{
    "statusCode"204,
    "headers": {
        "Pragma""no-cache",
        "x-ms-request-id""germanywestcentral:e6609c33-ff28-450d-817c-fc6fc4a7784ff",
        "x-ms-correlation-request-id""e6609c33-ff28-450d-817c-fc6fc4a7784ff",
        "x-ms-flow-mobile-ios-version""1.3.0",
        "x-ms-flow-routing-request-id""GERMANYWESTCENTRAL:20220222T155748Z:e6609c33-ff28-450d-817c-fc6fc4a7784ff",
        "Strict-Transport-Security""max-age=31536000; includeSubDomains",
        "X-Content-Type-Options""nosniff",
        "Timing-Allow-Origin""*",
        "x-ms-apihub-cached-response""true",
        "x-ms-apihub-obo""true",
        "Cache-Control""no-cache",
        "Date""Tue, 22 Feb 2022 15:57:48 GMT",
        "Content-Length""0",
        "Expires""-1"
    }
}
{    "statusCode": 204,    "headers": {        "Pragma": "no-cache",        "x-ms-request-id": "germanywestcentral:e6609c33-ff28-450d-817c-fc6fc4a7784ff",        "x-ms-correlation-request-id": "e6609c33-ff28-450d-817c-fc6fc4a7784ff",        "x-ms-flow-mobile-ios-version": "1.3.0",        "x-ms-flow-routing-request-id": "GERMANYWESTCENTRAL:20220222T155748Z:e6609c33-ff28-450d-817c-fc6fc4a7784ff",        "Strict-Transport-Security": "max-age=31536000; includeSubDomains",        "X-Content-Type-Options": "nosniff",        "Timing-Allow-Origin": "*",        "x-ms-apihub-cached-response": "true",        "x-ms-apihub-obo": "true",        "Cache-Control": "no-cache",        "Date": "Tue, 22 Feb 2022 15:57:48 GMT",        "Content-Length": "0",        "Expires": "-1"    }}


Flow:

PwAppsNoob_0-1645649576297.png


Connections (when shared, other users configure their personal connection):

PwAppsNoob_1-1645649823118.png

 

  • Verified answer
    A1234567 Profile Picture
    16 on at
    Re: Shared Flow can only be used by the author - Error 400 "The respone is not in a JSON format."

    FYI general solution details:

    Solution: How to use the MS Teams: 'Post a Feed No... - Power Platform Community (microsoft.com)

    Source

  • PwAppsNoob Profile Picture
    9 on at
    Re: Shared Flow can only be used by the author - Error 400 "The respone is not in a JSON format."

    Yes, each client had to install the Power Automate App in their Teams client.
    We did this via an app policy over the Teams admin interface.

  • A1234567 Profile Picture
    16 on at
    Re: Shared Flow can only be used by the author - Error 400 "The respone is not in a JSON format."

    I'm facing the same issue. Have you managed to find a solution?

    Thanks.

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow