Can you call a Mail Script out of another Mail Script?

Ron59
Kilo Explorer

Hello,
Is it possible to call a Mail Script out of another Mail Script?
Let's say I want to execute a Mail Script based on the calculation of another Mail script and I want it to be executed only at specific conditions. I am not able to do this decision in the Message HTML field of the notification and I want to reuse a given mail script so that I don't have to copy/ write the code again.
Hope you have an idea.

Cheers
Ron

1 REPLY 1

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Ron,

Instead of try to do that, I would put your code in a script include and then call that from 1 or more mail scripts. That way you get the reusability and can call the functionality from any mail script.