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

variable advanced reference qualifier example

URL link in addInfoMessage