Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Embedded Survey is not displaying in the email

MSM1
Tera Contributor

Hello Team,

 

I am trying to embed the Survey in the email, for this I have followed all the steps as per the documentation.

Activated the Outlook Actionable Messages Plugin

Included : In 'Survey User Invite' Notification included ${mail_script:include_survey_actionable}

Enabled : Send Notifications and Outlook Actionable Messages  on the Survey Definition.

 

But I dont see it working, can anyone guide me here. Is there anything that I am missing.

 

Thanks,

msm.

1 REPLY 1

AlexandraHelga
Tera Contributor

Hello
I managed to embed the survey in the email. I followed the same steps as you did but it did not work for me as well so I tried a different way as follows: 

My scenario is to send an email notification to the caller after the incident is closed:

- I created the trigger condition called TEST for the Survey( my survey is an image scale. Please note that: we can have only 1 question image scale type survey unless is not going to be displayed in the email). See the image attached of the trigger

AlexandraHelga_0-1701772042089.png

- I created the email notification in the Assessment Instance Table ( note that the system will have already another email notification for survey out-of-box but I created another one based on my scenario)

AlexandraHelga_2-1701772252127.png

AlexandraHelga_3-1701772285741.png

 

AlexandraHelga_4-1701772421348.png

Important: As you see, i did not use the ${mail_script:include_survey_actionable} while is not working, and I used the ${mail_script:survey_url_script} which made my survey visible in the email body 😄 

 

If both emails notifications ( the OOB and the one you just created for your scenario) are triggered, then you will need to give a higher WEIGHT to the one you want to be triggered, or just add an condition that will make one of them to be triggered only when " The incident state is closed" ( my case) or if you created an Survey only for one department/situation you can add to the condition the Trigger Condition. 

AlexandraHelga_6-1701772996720.png

 

The only issue is that the Survey width is oversized:

AlexandraHelga_5-1701772666516.png

Cheers!