Generic Instance for URL in email notification

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2012 09:49 PM
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');
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-22-2012 11:44 PM
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 as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-23-2012 05:23 AM
This might also help.
http://www.servicenowguru.com/scripting/business-rules-scripting/finding-instance-name-via-script/