Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

SOW how to get url params ?

KelvinY2025
Tera Contributor
var url = new GlideURL(window.location.href);
var paramValue = url.getParam('myparam');
if (paramValue) {
   console.log('Parameter exists with value:', paramValue);
} else {
   console.log('Parameter does not exist.');
}
 
(g_env) [SCRIPT:EXEC] Error while running Client Script "Incident Demo01": ReferenceError: GlideURL is not defined
why ?  How to do ?
0 REPLIES 0