cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
juancruz
Frequent Visitor

Adaptive Card Error HTTP 400 in Outlook

I created a 1st flow triggered by 'When an item or file is modified" that sends an adaptive card via Outlook. I want to update the card once the user responds the choice inquiry in the card to a simple "Thank you for your response". For this I created a second flow with the trigger "When an HTTP request is received". I tested it using Postman and that works too. I've read various posts and articles on how to do so and also registered the first card on the Actionable Messages Dashboard. I've copied the HTTP endpoint that the 2nd flow gave me into the target url in the submit button and in the card registry. The issue comes along when I'm testing the adaptive card submit button. It gives me the error: "The remote endpoint returned an error (HTTP 400). Please try again later. Help would be very appreciated!!! 

 

I used this as a guide: https://www.about365.nl/2018/08/17/custom-actionable-messages-with-microsoft-flow-part-2-getting-the... 

 

<script type="application/adaptivecard+json">{
    "type": "AdaptiveCard",
    "version": "1.0",
    "originator": "4fff4d35-842a-4534-a9f4-8cad8e3abd1b",
    "body": [
        {
            "type": "TextBlock",
            "text": "Deliverable Assessment",
            "id": "Title",
            "spacing": "Medium",
            "horizontalAlignment": "Center",
            "size": "ExtraLarge",
            "weight": "Bolder",
            "color": "Accent"
        },
        {
            "type": "TextBlock",
            "text": "Status after approval",
            "weight": "Bolder",
            "size": "ExtraLarge",
            "spacing": "ExtraLarge",
            "id": "acHeader"
        },
        {
            "type": "TextBlock",
            "text": "Please select the schedule option that corresponds the most to the deliverable.",
            "id": "acPollQuestion",
            "horizontalAlignment": "Left",
            "wrap": true
        },
        {
            "type": "Input.ChoiceSet",
            "placeholder": "Select from these choices",
            "choices": [
                {
                    "title": "Approved in Time",
                    "value": "Approved in Time"
                },
                {
                    "title": "Delayed by Review/Comment Process",
                    "value": "Delayed by Review/Comment Process"
                }
            ],
            "id": "acPollChoices",
            "style": "expanded"
        },
        {
            "type": "TextBlock",
            "id": "Due Date",
            "text": "Due Date:\n\n\n",
            "wrap": true,
            "size": "ExtraLarge",
            "weight": "Bolder"
        },
        {
            "type": "Container",
            "spacing": "None",
            "items": [
                {
                    "type": "ColumnSet",
                    "columns": [
                        {
                            "type": "Column",
                            "width": "stretch",
                            "items": [
                                {
                                    "type": "TextBlock",
                                    "text": "@{formatDateTime(triggerOutputs()?['body/reviewdue2'],'MM/dd/yyyy')}",
                                    "color": "@{if(greater(outputs('todays_date'),outputs('format')),'attention','good')}",
                                    "wrap": true,
                                    "spacing": "None",
                                    "id": "DueDate"
                                }
                            ],
                            "padding": "None"
                        }
                    ],
                    "padding": "None"
                }
            ],
            "padding": "None"
        },
        {
            "type": "ActionSet",
            "id": "2e67f88c-562d-74d4-d1f8-3dd8bc034c17",
            "actions": [
                {
                    "type": "Action.Http",
                    "id": "4df0dd56-55f1-e015-b9fe-f73adabc00fa",
                    "title": "Submit",
                    "url": "https://prod-74.westus.logic.azure.com:443/workflows/89153cf7dc974b5a852c4ba2d4f988c0/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=RRIj0cZgQAwsRvCsLx4jnegON0pjSugYB-736owKDsY",
                    "method": "POST",
                    "body": "Submit",
                    "headers": [
                        {
                            "name":"Authorization",
                            "value": ""
                        }
                    ]
                }
            ]
        }
    ],
    "padding": "None",
    "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
    "@type": "AdaptiveCard",
    "@context": "http://schema.org/extensions"
}
</script>

 

Screen Shot 2020-09-05 at 4.47.05 PM.pngScreen Shot 2020-09-05 at 4.46.33 PM.pngScreen Shot 2020-09-05 at 4.22.46 PM.png

2 REPLIES 2
Anonymous
Not applicable
PHemingway610
Advocate II
Advocate II

I have the same problem, using a provider approved for test users.  And I'm only trying to test with myself.  Everything else works, but the submit button won't send the response and I get an HTTP 400 error, both in the web client and desktop client.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (2,936)