Get URL Parameter - server side script (portal or classic UI)

Classic UI:

var sURL_editparam = gs.action.getGlideURI().getMap().get('sysparm_aparameter');


if (sURL_editparam == 'true') { gs.addInfoMessage('parameter passed); }


Portal:

var sURL_editparam=$sp.getParameter("sysparm_aparameter"); if (sURL_editparam == 'true') { gs.addInfoMessage('parameter passed); }

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