- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 02:30 AM
Hi All,
For the one and only Survey Notification:::
In Rich HTML Editor:::
After having changed the format of the OOB existing survey email notification ( where I am adding a .png image and changing the text ) , the link is not working and it's showing:
"Email script render error: email script [ Survey User Invite_script_1 ] does not exist"
In Plain Text Editor :::
The Survey link is working and showing as "Take me to the Survey"
Body of the message:::
Hi ${user}
If you have 2 minutes we'd greatly appreciate your feedback on how we did resolving your support ticket with xyz.
Please use the secure link below to access the survey.
<mail_script>
var html = new AssessmentUtils().getInstanceLinkHTML(current);
template.print(html);
</mail_script>
We're here if you need anything.
It will be great if someone can help me figure out this one.
Thanks and Regards
Saurabh
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 03:02 AM
Read this doc. The answer is here
https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/administer/notification/task/t_ConvEmailNotifToRichHTML.html
Harish

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 02:43 AM
If you get this error "Email script render error: email script [ Survey User Invite_script_1 ] does not exist"
that means the email script name is wrong or the script is deleted. Can you check is that valid script name? Also the email script name in the notification does it match your script name?
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 02:51 AM
Hi Harish,
Thank you for your reply!
Actually this particular email script doesn't exist.
But then my query is how is that it is working in Plain Text Editor whereas not in Rich Text Editor?
If am trying to include the below code in Rich Text Editor then it's giving me a warning:::
<mail_script>
var html = new AssessmentUtils().getInstanceLinkHTML(current);
template.print(html);
</mail_script>
Regards,
Saurabh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 03:02 AM
Read this doc. The answer is here
https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/administer/notification/task/t_ConvEmailNotifToRichHTML.html
Harish
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-20-2022 03:26 AM
Bingo! Thanks Buddy! It worked!
Actually I had to select 'yes' and then it automatically created a email script using the OOB code:::
<mail_script>
var html = new AssessmentUtils().getInstanceLinkHTML(current);
template.print(html);
</mail_script>