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>


