cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
WillPage
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
WillPage
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
WillPage
Impactful Individual
Impactful Individual

image.png

WillPage
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

abm
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 blogPower Automate Video Tutorials

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Users online (1,665)