prevent running a fix script on a prod instance

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

if (instURL.indexOf('https://PRODINSTANCE.service-now.com')>-1) { gs.print('do not run on prod'); } else {



Comments

Popular posts from this blog

GlideRecord setValue

Running transform maps asynchronously

variable advanced reference qualifier example