Actionable Message in Outlook

2019-11-16

All articles from this blog can ONLY be redistributed on an Attribution-NonCommercial-NoDerivs basis. Please credit the source, thank you.
Twitter:@kelvinshen
Blog:Kelvin Shen's Blog

The first time I saw an Actionable Message in Outlook is from an email from Approvals of Power Automates (formerly MS Flow).

The scenario is that someone will send approval emails to approvers for actions. The emails contains buttons what the receivers can click and provide feedback. It was so cool because the buttons are inside the email. image

How does it work under the hood. My initial thought is that there must be javascript behind the email. However, it is not possible because most of email systems ban JavaScript due to security risks.

Actionable Messages in Outlook

In a nutshell, Actional Messages use JSON to construct the messages declaratively. Below is an example

{
  "type": "AdaptiveCard",
  "version": "1.0",
  "body": [
    {
      "type": "TextBlock",
      "text": "Visit the Outlook Dev Portal",
      "size": "large"
    },
    {
        "type": "TextBlock",
        "text": "Click **Learn More** to learn more about Actionable Messages!"
    },
    {
      "type": "Input.Text",
      "id": "feedbackText",
      "placeholder": "Let us know what you think about Actionable Messages"
    }
  ],
  "actions": [
    {
      "type": "Action.Http",
      "title": "Send Feedback",
      "method": "POST",
      "url": "https://...",
      "body": ""
    },
    {
      "type": "Action.OpenUrl",
      "title": "Learn More",
      "url": "https://docs.microsoft.com/outlook/actionable-messages"
    }
  ]
}

Security and Access Control

Actional Messages also restrict access to the actionable controls if one forward the message to someone else.

Documentation and tutorial

Documentation

Documentation Link

A Quick Video Introduction

Attempts to Send a Test Actionable Message

Attempt 1: Using Notepad++

Result: Failed

Attempt 2: Using Outlook Classic Attach Button

Result: Failed

Attempt 3: Write Code

Code Example 1 Result: Todo

Future Todos

  • Send out actionable messages from Dynamics 365 on premise orgnisations. It is not hard to do so using Power Automation but on premise environments don’t have the luxury.

Leave a Reply

comments powered by Disqus


Table of Content