web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Adaptive Card Error HT...
Power Automate
Unanswered

Adaptive Card Error HTTP 400 in Outlook

(1) ShareShare
ReportReport
Posted on by 2

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-response/ 

 

<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

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at
  • PHemingway610 Profile Picture
    129 on at

    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.

  • Community Power Platform Member Profile Picture
    on at

    Experiencing same issue, is there a walktrough I could do?

  • MBates Profile Picture
    on at

    Same issue.  Were you able to resolve this?

  • PHemingway610 Profile Picture
    129 on at

    Yes.  I believe it was something incorrect in the syntax for the payload/fields I was sending in the adaptive card.  I focused on that, found a missing or extra parentheses or quotation mark or something like that, and then it worked.  

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard