Instance name or base URL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 02:35 AM
Hi,
I need to have base url our instance name, because , as we have 3 instances, we cannot hard code links. (I can't find a way to use ${URI} or ${URI+} in blocs in templates)
Regards,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 05:18 AM
(I can't find a way to use ${URI} or ${URI+} in blocs in templates)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 05:23 AM
OK, got it : gs.getProperty("instance_name");

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 05:34 AM
You can also get the full instance URL by accessing the 'glide.servlet.uri' property. See here for details...
http://www.servicenowguru.com/scripting/business-rules-scripting/finding-instance-name-via-script/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-12-2010 05:45 AM
mark.stanger
Better than ever ! thanks a lot
So my little function is now stretched to :
function CreateLinkForObject(strTableName, strSys_id)
{
return "LINK";
}