Comments on: Finding the Name or URL of your Instance via Script https://servicenowguru.com/business-rules-scripting/finding-instance-name-via-script/ ServiceNow Consulting Scripting Administration Development Wed, 06 Mar 2024 20:54:46 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Jim Coyne https://servicenowguru.com/business-rules-scripting/finding-instance-name-via-script/#comment-6381 Sat, 19 May 2012 01:47:55 +0000 https://servicenowguru.wpengine.com/?p=714#comment-6381 In reply to ND.

I’m not sure exactly what you are looking for, but can you use “window.location” in your script to get the URL of the page you are on and then check the value of that string???

]]>
By: Mark Stanger https://servicenowguru.com/business-rules-scripting/finding-instance-name-via-script/#comment-6380 Thu, 17 May 2012 15:00:39 +0000 https://servicenowguru.wpengine.com/?p=714#comment-6380 In reply to ND.

That’s correct. This returns instance URLs. I don’t have an equivalent currently that handles CMS site URLs.

]]>
By: ND https://servicenowguru.com/business-rules-scripting/finding-instance-name-via-script/#comment-6379 Thu, 17 May 2012 14:44:44 +0000 https://servicenowguru.wpengine.com/?p=714#comment-6379 Hi Mark,

This is very useful information.

I am looking for similar method to find URL of a site created by us. We have created a site with prefix Booking, now I want to find the site using command so that I can create different welcome page for this site.

I tried using above method for site, but it is not working as it will return the instance not the actual URL.

ND

]]>