Message card with HttpPost action is erroring out "There was a problem submitting your changes. Please try again in a minute"

Sravanti Aketi 30 Reputation points
2023-07-25T06:04:59.49+00:00

We are trying to post message to teams channel using teams webhook api which was created using teams channel connector

{

"@context": "https://schema.org/extensions",

"@type": "MessageCard",

"themeColor": "0072C6",

"title": "Failure report",

"summary": "Failure report",

"sections": [

{

"facts": [

{"name": "AppID", "value": f"{app_id}"}

]

}

],

"potentialAction": [

{

"@type": "HttpPOST",

"name": "Generate Report",

"target": "https://<functions endpoint url>",

"headers": [

{

"name": "Authorization",

"value": ""

},

{

"name": "Content-Type",

"value": "application/json",

},

{

"name": "XXX",

"value": "XXX",

},

{

"name": "XXX",

"value": "XXX",

},

{

"name": "XXXXX",

"value": "XXXX",

},

{

"name": "XXXX",

"value": "XXXX",

}

],

"body": <payload>

},

{

"@type": "HttpPOST",

"name": "Generate Status Report",

"target": "https://<functions endpoint url>",

"headers": [

{

"name": "Authorization",

"value": ""

},

{

"name": "Content-Type",

"value": "application/json",

},

{

"name": "XXX",

"value": "XXX",

},

{

"name": "XXX",

"value": "XXX",

},

{

"name": "XXX",

"value": "XXX",

},

{

"name": "XXX",

"value": "XXX,

},

],

"body": <payload>

}

]

}

Posting the above content to teams webhook url.

.

On clicking the httppost button its erroring out "There was a problem submitting your changes. Try again in a minute." Its erroring out intermittently.

can someone help on this please?

Image

This is response from teams webhook Image

We are trying to post message to teams channel using teams webhook api which was created using teams channel connector

Image

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,808 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Sayali-MSFT 3,886 Reputation points Microsoft External Staff
    2023-07-27T09:09:29.18+00:00

    @Sravanti Aketi - We are able to repro that issue, we have raised bug for the same. We will inform you once we get any update.
    card


  2. Aldo Meza 0 Reputation points
    2023-08-01T06:38:27.3533333+00:00

    I'm having a similar issue, mine works randomly or after falling at least once...

    {
        "@type": "MessageCard",
        "@context": "http://schema.org/extensions",
        "summary": "Alert Summary",
        "sections": [
            {
                "activityTitle": "Alerta de temperatura para XXXXXXXXX",
                "activitySubtitle": "Estado: CRITICO",
                "facts": [
                    {
                        "name": "Message",
                        "value": "Mensaje de Alerta de temperatura para XXXXX"
                    },
                    {
                        "name": "Emitida el",
                        "value": "1/8/2023, a las 00:33:00"
                    },
                    
                    {
                        "name": "Opciones para la alerta:",
                        "value": " "
                    }
                ]
            }
        ],
        "potentialAction": [
            {
                "@type": "OpenUri",
                "name": "Abrir Sysma",
                "targets": [
                    {
                        "os": "default",
                        "uri": "http://localhost:3000/"
                    }
                ]
            },
            {
                "@type": "OpenUri",
                "name": "Desactivar alerta",
                "targets": [
                    {
                        "os": "default",
                        "uri": "http://localhost:3000"
                    }
                ]
            },
            {
                "@type": "ActionCard",
                "name": "Pausar alerta...",
                "inputs": [
                    {
                        "@type": "MultichoiceInput",
                        "id": "pauseTime",
                        "title": "¿Por cuanto tiempo se va pausar?",
                        "isMultiSelect": false,
                        "choices": [
                            {
                                "display": "15 minutos",
                                "value": "15"
                            },
                            {
                                "display": "30 minutos",
                                "value": "30"
                            },
                            {
                                "display": "1 hora",
                                "value": "60"
                            },
                            {
                                "display": "2 horas",
                                "value": "120"
                            },
                            {
                                "display": "4 horas",
                                "value": "240"
                            }
                        ]
                    }
                ],
                "actions": [
                    {
                        "@type": "HttpPOST",
                        "name": "Confirmar",
                        "headers": [
                            {
                                "name": "LmaoXD",
                                "value": "uwuw"
                            }
                        ],
                        "target": "https://fakeapiendpointhere.free.beeceptor.com",
                        "body": "{\"timeInMinutes\": \"{{pauseTime.value}}\", \"alertData\": \"false\"}",
                        "bodyContentType": "application/json"
                    }
                ]
            }
        ]
    }
    
    0 comments No comments

  3. 3C Admin (Ed Sawyer) 0 Reputation points
    2023-08-21T14:13:54.7266667+00:00

    We are having same issue, call never goes to post api url. Any update on this issue?


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.