Execute this as a catalog client script on the record producer, onSubmit method function onSubmit() { var cat_id = gel(‘sysparm_item_guid’).value; var gr = new GlideRecord(“sys_attachment”); gr.addQuery(“table_name”, “u_ar_package”); gr.addQuery(“table_sys_id”, cat_id); gr.query(); if (!gr.next()) { alert(“You must upload a package prior to submitting.”); return false; }else if(gr.next()){ return true; } }
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; } }
What user name and password we should give during ServiceNow MID Server configuration?
We know that Service/Deamon that facilitates the communication between ServiceNow instance and external Services/Data Sources. During the configuration of agent/config.xml we need to give the username and password. For that Create a new user say SNCMidServerDev1 Assign the mid_server role to the user (Not the admin role and never) Just the mid_server role is […]