sys property to check if instance is prod instance -- DO NOT CHANGE IT!

glide.installation.production

can be set to "false" in sub-prod instances > should not be changed! See why here

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0818410


try this approach instead:


instURL = gs.getProperty('glide.servlet.uri');

 

if (instURL.indexOf('https://xxxprod.service-now.com') > -1) {

 

     gs.print('Not to be run on prod!!');

 

}























Comments

Popular posts from this blog

GlideRecord setValue

variable advanced reference qualifier example

URL link in addInfoMessage