question

FincherDonald-3719 avatar image
0 Votes"
FincherDonald-3719 asked FincherDonald-3719 commented

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

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.





office-outlook-itpro
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.

1 Answer

JadeLiang-MSFT avatar image
1 Vote"
JadeLiang-MSFT answered FincherDonald-3719 commented

Hi @FincherDonald-3719,

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
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 JadeLiang-MSFT,
Thank you for your reply. Indeed, that thread you found did help me!
I will look for the correct forum for next time. Despite that, it was very nice of you to help me out!

0 Votes 0 ·