The CreatorCon Call for Content is officially open! Get started here.

Global Variable for Business Rules

mdidrikson
Kilo Contributor

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

2 REPLIES 2

john_andersen
Tera Guru

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


Thanks John! I think that's exactly what I'm looking for.

Mark Didrikson