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.

Notification email script is not being found when called by notification

samuelscott
Tera Expert

Hello Community,

 

I'm calling a notification email script from the notification's configuration setup, and for some reason, the line where the email script is called prompts a message indicating, "Email script render error: email script [ cx.quotation_amount ] does not exist". 

 

The email script DOES exist....can someone help me? I'll attach images.

 

 

 

1 ACCEPTED SOLUTION

SatheeshKumar
Kilo Sage

 

 

To fix it, go into the notification that is generating the error and click the < > button on the editor to open the source code editor. Look for the tag ${cx.quotation_amount}. It likely has span tags in it so it looks like this:   ${cx.quotation_amount</span><span>}, which is causing the notification to be unable to find the mail script and run it.

 

Remove the span tags and you should be good to go.

 

-satheesh

View solution in original post

4 REPLIES 4

SatheeshKumar
Kilo Sage

 

 

To fix it, go into the notification that is generating the error and click the < > button on the editor to open the source code editor. Look for the tag ${cx.quotation_amount}. It likely has span tags in it so it looks like this:   ${cx.quotation_amount</span><span>}, which is causing the notification to be unable to find the mail script and run it.

 

Remove the span tags and you should be good to go.

 

-satheesh

Thanks, that fixed it....but why did it have span tags? It had never happened before.

 

thankss

Not sure...  while entering script name you may mistakenly added a space.

thanks