Email script render error: email script [ Survey User Invite_script_1 ]

Saurabh8
Kilo Expert

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

 

1 ACCEPTED SOLUTION

Read this doc. The answer is here

https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/administer/notification/task/t_ConvEmailNotifToRichHTML.html

Regards
Harish

View solution in original post

4 REPLIES 4

Harish KM
Kilo Patron
Kilo Patron

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?

Regards
Harish

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>

find_real_file.png

Regards,

Saurabh

Read this doc. The answer is here

https://docs.servicenow.com/en-US/bundle/sandiego-servicenow-platform/page/administer/notification/task/t_ConvEmailNotifToRichHTML.html

Regards
Harish

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>