Adaptive Cards Error: “The remote endpoint returned an error HTTP 401.

Sachin Jindal 5 Reputation points
2024-06-14T07:06:36.8+00:00

{

    "type": "AdaptiveCard",

    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",

    "version": "1.0",

    "actions": [

        {

            "type": "Action.Http",

            "title": "Approve",

            "id": "btnApprove",

            "url": "https://prod2-12.centralindia.logic.azure.com:443/workflows/a79361c76b21450e883485e81712ca4e/triggers/manual/paths/invoke?api-version=2016-06-01",

            "method": "POST",

            "body": "{"Remarks":"{{Remarkstxt.text}}"\n"Status":"Approved"\n}",

            "headers": [

                {

                    "name": "Authorization",

                    "value": ""

                },

                {

                    "name": "Content-type",

                    "value": "application/json"

                }

            ]

        },

        {

            "type": "Action.Http",

            "title": "Reject",

            "id": "btnRejected",

            "url": "https://prod2-12.centralindia.logic.azure.com:443/workflows/a79361c76b21450e883485e81712ca4e/triggers/manual/paths/invoke?api-version=2016-06-01",

            "method": "POST",

            "body": "{"Remarks":"{{Remarkstxt.text}}"\n"Status":"Rejected"\n}",

            "headers": [

                {

                    "name": "Authorization",

                    "value": ""

                },

                {

                    "name": "Content-type",

                    "value": "application/json"

                }

            ]

        }

    ],

    "body": [

        {

            "type": "Input.Text",

            "placeholder": "Remarks",

            "id": "Remarkstxt",

            "isMultiline": true

        }

    ]

}

Outlook
Outlook
A family of Microsoft email and calendar products.
4,218 questions
PowerPoint Management
PowerPoint Management
PowerPoint: A family of Microsoft presentation graphics products that offer tools for creating presentations and adding graphic effects like multimedia objects and special effects with text.Management: The act or process of organizing, handling, directing or controlling something.
234 questions
0 comments No comments
{count} vote

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.