- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2016 09:30 AM
Looking to avoid hard coding debug variables and passing them amongst sub-workflows.
Were I doing standard web development w/ JavaScript, I'd do something like
var isDebug
var host = window.location.hostname;
isDebug = host.includes('dev');
Is there a way to do something similar within ServiceNow/Orchestration?
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2016 09:32 AM
There is a system property named "instance_name" which you can reference from your script.
Here's a link explaining how to get a system property from a server side script.
http://wiki.servicenow.com/index.php?title=GlideSystem#getProperty.28String.2C_Object.29
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2016 09:32 AM
There is a system property named "instance_name" which you can reference from your script.
Here's a link explaining how to get a system property from a server side script.
http://wiki.servicenow.com/index.php?title=GlideSystem#getProperty.28String.2C_Object.29
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2016 10:04 AM
Perfect. Recently added to devel by work to the system, working out my
SNLegs and where everything is. From that i was able to figure out
var thisInstanceName = gs.getProperty("instance_name");
Thank you for alleviating some hardcoding for me
On Mon, Oct 31, 2016 at 10:32 AM, HugoFirst <