Workaround for Embedding a Survey in an Email
4 min
for ism releases earlier than 2026 3 , use this workaround to embed a modern survey in an actionable email this procedure updates the adaptive card authorization header to ensure that survey responses are submitted correctly from actionable messages this workaround applies only to ism releases earlier than 2026 3 before you begin, complete the prerequisite procedure described in creating actionable message provider with microsoft entra app id pre requisites creating actionable message provider with microsoft entra app id this configuration is required before you create or modify the actionable message payload used by modern surveys generate and update the adaptive card payload open the modern survey that you want to embed in an email select publish > embed as email select the required business object and then copy the generated actionable message payload to the clipboard extract the compressed json contained within the following script tag extract compressed json embedded within \<script type="application/adaptivecard+json"> // adaptive card json \</script> open the actionable messages designer select blank card paste the extracted json into the edit json payload section update the authorization header value for the submit survey action and each star or smiley image action to for standard question survey types, select or click an answer and then select submit survey to submit your response for a star rating survey question, select each star and verify that the corresponding rating is recorded correctly for a smiley rating survey question, select each smiley and verify that the corresponding rating is recorded correctly copy the updated json and compress (minify) it by using a text editor that supports json minification or an online json minification tool enclose the compressed json in a \<script> tag, as shown in the following example, and use it as the adaptive card template payload copy the adaptive card payload and paste it into the email body of the triggered action, workflow, or quick action that sends the survey notification after you send the notification email, recipients can interact with the embedded modern survey directly from the actionable message email
