Get bits from the URL

get entire url:

var instanceURL = GlideTransaction.get().getRequest().getHeader("referer");

get bit of a url:

var surl='';
//--bit between 'sysparm_newcase' and '&'
var testRE = surl.match("sysparm_newcase=(.*)&");


Popular posts from this blog

Running transform maps asynchronously

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

GlideRecord setValue