question

eaori-2954 avatar image
0 Votes"
eaori-2954 asked eaori-2954 commented

Actionable card on Outlook is failing to call the web workflow endpoint

I have created a provider using Actionable Email Developer Dashboard using a Test scope. I then created a cloud flow that will get triggered by an HTTP Post request on a specific url (that url is also set on the provider side).

Lastly I generated an actionable card using the designer and I am manually sending it to my own email with the workflow below:

So basically I am sending an action card from myself to myself and I expect that when I select an option my web workflow will be called appropriately.

117977-image.png

By calling the url on postman I get a response with code 200, but directly clicking the action on the email will result to a code 400 error. Why is my request formed badly and how can I fix it?

The card looks like this:

 <script type="application/adaptivecard+json">
     {
     "type": "AdaptiveCard",
     "body": [
         {
             "type": "Container",
             "style": "emphasis",
             "items": [
                 {
                     "type": "TextBlock",
                     "horizontalAlignment": "Left",
                     "color": "Dark",
                     "text": "Title",
                     "wrap": true
                 }
             ],
             "padding": "Default",
             "spacing": "None"
         },
         {
             "type": "Container",
             "separator": true,
             "style": "accent",
             "items": [
                 {
                     "type": "TextBlock",
                     "size": "Large",
                     "weight": "Bolder",
                     "color": "Dark",
                     "text": "Test Request",
                     "wrap": true
                 }
             ],
             "padding": "Default",
             "spacing": "None"
         },
         {
             "type": "Container",
             "separator": true,
             "items": [
                 {
                     "type": "FactSet",
                     "id": "105b5da3-b129-6ba3-f414-0fa914b10268",
                     "facts": [
                         {
                             "title": "Reason:",
                             "value": ""
                         }
                     ]
                 }
             ],
             "padding": {
                 "top": "Default",
                 "bottom": "None",
                 "left": "Default",
                 "right": "Default"
             },
             "spacing": "None"
         },
         {
             "type": "Container",
             "id": "466ee0a4-b5ba-520e-0b5d-53841fffe66e",
             "padding": "Default",
             "items": [
                 {
                     "type": "ActionSet",
                     "actions": [
                         {
                             "type": "Action.ShowCard",
                             "title": "Approve",
                             "card": {
                                 "type": "AdaptiveCard",
                                 "body": [
                                     {
                                         "type": "Input.Text",
                                         "id": "ApproveReason",
                                         "placeholder": "Add a reason",
                                         "isMultiline": true
                                     },
                                     {
                                         "type": "ActionSet",
                                         "actions": [
                                             {
                                                 "type": "Action.Http",
                                                 "title": "Submit",
                                                 "method": "POST",
                                                 "url": "https://prod-107.westus.logic.azure.com:443/workflows/0c1f7cdccacd4533b3c3de0cdfe82116/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=...",
                                                 "body": "{Reason: {<!-- -->{ApproveReason.value}}}",
                                                 "headers": [
                                                     {
                                                         "name": "Authorization",
                                                         "value": ""
                                                     },
                                                     {
                                                         "name": "Content-Type",
                                                         "value": "application/json"
                                                     }
                                                 ]
                                             }
                                         ]
                                     }
                                 ],
                                 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                                 "padding": "None"
                             },
                             "style": "positive",
                             "isPrimary": true
                         },
                         {
                             "type": "Action.ShowCard",
                             "title": "Decline",
                             "card": {
                                 "type": "AdaptiveCard",
                                 "body": [
                                     {
                                         "type": "Input.Text",
                                         "id": "DeclineReason",
                                         "placeholder": "Add a reason",
                                         "isMultiline": true
                                     },
                                     {
                                         "type": "ActionSet",
                                         "actions": [
                                             {
                                                 "type": "Action.Http",
                                                 "title": "Submit",
                                                 "method": "POST",
                                                 "url": "https://prod-115.westus.logic.azure.com:443/workflows/0c1f7cdccacd4533b3c3de0cdfe82116/triggers/manual/paths/invoke?api-version=2016-06-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig=...",
                                                 "body": "{Reason: {<!-- -->{DeclineReason.value}}}",
                                                 "headers": [
                                                     {
                                                         "name": "Authorization",
                                                         "value": ""
                                                     },
                                                     {
                                                         "name": "Content-Type",
                                                         "value": "application/json"
                                                     }
                                                 ]
                                             }
                                         ]
                                     }
                                 ],
                                 "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
                                 "padding": "None"
                             }
                         }
                     ],
                     "spacing": "None"
                 }
             ],
             "spacing": "None"
         }
     ],
     "$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
     "version": "1.0",
     "padding": "None",
     "hideOriginalBody": true,
     "originator": "<code from provider>"
 }
 </script>



microsoft-365-apps-publishing-dev
image.png (7.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @eaori-2954

Our forum is mainly focused on the general issue of Microsoft Teams troubleshooting. According to your description, your question is not related to Microsoft Teams. So I will remove teams tag from your thread. Thanks for your understanding and patience!

0 Votes 0 ·

Hi, thanks for updating my post. I could not seem to find any tag related to actionable cards, outlook and graphAPI so I had to select some similar ones.

0 Votes 0 ·

0 Answers