How to add script to head of email body for use with Actionable Messages

Fincher, Donald 21 Reputation points
2021-07-21T16:06:33.517+00:00

In the documentation for Actionable Messages, it says:

To embed an actionable message card in an email message, we need to wrap the card in a <script> tag. The <script> tag is then inserted into the <head> of the email's HTML body.

Can someone give me an example of this? I am a bit confused when it says to insert the <script> into the <head> of the HTML body. Does the <script> go between <head> and </head> -or- <body> and </body>?

My goal is to be able to send a Legacy Actionable MessageCard to an OutLook user. I'm using the Legacy format because I am sending the same message to Teams using the Legacy format.

Outlook | Windows | Classic Outlook for Windows | For business
0 comments No comments
{count} votes

Accepted answer
  1. Jade Liang-MSFT 9,986 Reputation points Microsoft Employee
    2021-07-22T03:06:45.857+00:00

    Hi @Fincher, Donald ,

    Based on my research about the example in document that you mentioned above, I found the script tag is inserted between <head> and </head>. Also, I found a relevant thread thread in githud that also mentioned it we need to insert it in head, please kindly check if it could be helpful to you.

    If that's invalid or you still need further assistance about it, please understand here we mainly focus on general issues about Outlook desktop client, considering your issue may be more related to actionable message development, it's recommended to post your issue in relevant development forum.

    Hope your issue would be resolved soon.


    If the response is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.