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

Post a command to the ECC queue for the mid server to initiate a powershell file copy