cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Impactful Individual
Impactful Individual

Actionable Message Blank

Hello,

 

I'm just about pulling my hair out with this so hopefully someone can help.

I have constructed a basic Adaptive Card using https://adaptivecards.io/designer

I have also used https://amdesigner.azurewebsites.net/ to send it to myself and it works fine. I receive an email with the adaptive card in it:

image.png

 

I have been to the Actionable Email Developer Dashboard and registered the sender email with the scope set to Organisation, then logged in as Global Admin and approved. I did that yesterday.

image.png

Now in my Flow I have a compose action with the Input as follows (I have redacted the originator value and Action.Http URL, which is an HTTP post trigger for another Flow). When I get this working the Text Blocks and Choice Set will contain dynamic content from earlier in the Flow, but for now, it's static test data.

 

 

 

<script type="application/adaptivecard+json">
{
  "type": "AdaptiveCard",
  "version": "1.0",
  "originator": "0f800053-e007-4008-a00a-1ce00000000a",
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "Please index the following document",
      "horizontalAlignment": "Left"
    },
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "File Name",
      "horizontalAlignment": "Left",
      "id": "DocumentID",
      "value": "id"
    },
    {
      "type": "TextBlock",
      "text": "Select the content type"
    },
    {
      "type": "Input.ChoiceSet",
      "id": "ContentTypeSelectVal",
      "value": "1",
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Http",
      "title": "Submit",
      "style": "positive",
      "method": "POST",
      "headers": [
        {
          "name": "Authorization",
          "value": ""
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "url": "https://prod-08.australiasoutheast.logic.azure.com:443/workf.......",
      "body": {
               "testkey":"testvalue"
               }
    }
  ]
}
</script>

 

After that I have a Send an email action like so. The connection is to the account with which I registered the Actionable Message provider:

image.png

When I test the Flow, the received email looks like this, with no Actionable message inside:

image.png

 

Now, if I view message source in Outlook, it looks like this:

 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<script type="application/adaptivecard&#43;json">
{
  "type": "AdaptiveCard",
  "version": "1.0",
  "originator": "00000053-e007-4000-000-1ce00000000a",
  "body": [
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "Please index the following document",
      "horizontalAlignment": "Left"
    },
    {
      "type": "TextBlock",
      "size": "Medium",
      "weight": "Bolder",
      "text": "File Name",
      "horizontalAlignment": "Left",
      "id": "DocumentID",
      "value": "id"
    },
    {
      "type": "TextBlock",
      "text": "Select the content type"
    },
    {
      "type": "Input.ChoiceSet",
      "id": "ContentTypeSelectVal",
      "value": "1",
      "choices": [
        {
          "title": "Red",
          "value": "1"
        },
        {
          "title": "Green",
          "value": "2"
        },
        {
          "title": "Blue",
          "value": "3"
        }
      ]
    }
  ],
  "actions": [
    {
      "type": "Action.Http",
      "title": "Submit",
      "style": "positive",
      "method": "POST",
      "headers": [
        {
          "name": "Authorization",
          "value": ""
        },
        {
          "name": "Content-Type",
          "value": "application/json"
        }
      ],
      "url": "https://prod-08.australiasoutheast.logic.azure.com:443/workf.......",
      "body": {
               "testkey":"testvalue"
               }
    }
  ]
}
</script>
</head>
</html>

 

The only real difference I can see is the URL encoding of the + character in the opening <script> tag.

I installed the Actionable Messages debugger Outlook add-in, and it has this to say:

 
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Impactful Individual
Impactful Individual

No sooner than I posted this, I found the issue. The body property of the Action.Http object was the cause. For some reason it works in the sandbox as "body": {"key":"value"} but in reality it needs to be "body":"{something}"

 

Now I'm happy.

View solution in original post

3 REPLIES 3
Highlighted
Impactful Individual
Impactful Individual

image.png

Highlighted
Impactful Individual
Impactful Individual

No sooner than I posted this, I found the issue. The body property of the Action.Http object was the cause. For some reason it works in the sandbox as "body": {"key":"value"} but in reality it needs to be "body":"{something}"

 

Now I'm happy.

View solution in original post

Highlighted
Super User III
Super User III

Hi @WillPage 

 

Could you try removing the HTML tags from the body and just place the Output.

 

Thanks



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog

Power Automate Video Tutorials

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

Top Solution Authors
Top Kudoed Authors
Users online (7,276)