ServiceNow Learning
Wednesday, April 19, 2017
Retrieve the URL parameters in the ServiceNow Scripting
var billingCode = getParmVal('sysparm_number');
function getParmVal(name) {
var url = document.URL.parseQuery();
if (url[name]) {
return decodeURI(url[name]);
} else {
return;
}
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.