Global Variable for Business Rules
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2011 01:25 PM
Hello,
Is it possible to set a global variable or property that all Business Rules would have access to?
We want to set a variable to be an endpoint value we use for XML web services calls and we want to keep our test environment value from being accidentally migrated to our production instance.
Test value: http://endpoint-test.com
Production: http://endpoint.com
Thanks!
Mark Didrikson
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-22-2011 02:02 PM
It may be cleaner to create a system property that holds that value for you. That system property would be accessible throughout the instance and all scripts.
System property could be created/modified manually or in a scripted form.
For adding a system property see:
http://wiki.service-now.com/index.php?title=Adding_a_Property
To get a property value programatically:
http://wiki.service-now.com/index.php?title=GlideSystem#getProperty.28String.2C_Object.29
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-26-2011 05:57 AM
Thanks John! I think that's exactly what I'm looking for.
Mark Didrikson