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.

Generic Instance for URL in email notification

Bill_Collins
Mega Guru

I have seen in the Wiki, but can't find information on building generic URLs so when moving a notification from one instance to another, e.g., cloning, the email does not need to be modified. In the following mail script I have the

Thanks, Bill


template.print("Attachments:\n");
printattachments();
function printattachments() {
var gr...



' + gr.file_name + '\n');
}
}

2 REPLIES 2

adiddigi
Tera Guru

Hey Bill,

I see the code you are using is a generic one. But if you want to make instance.service-now.com generic there is a system property that stores it. Name of that property is glide.email.override.url or you can create a new property for each instance and refer it in the script.

More on system properties :

http://www.servicenowguru.com/system-definition/working-with-system-properties/


Mark Stanger
Giga Sage

This might also help.

http://www.servicenowguru.com/scripting/business-rules-scripting/finding-instance-name-via-script/