What is IT Asset Management? IT asset management (ITAM) is a set of business practices that join financial, contractual, and inventory functions to support life cycle management and strategic decision making for the IT environment. Managing IT assets allows you to get maximum value from the use of the assets, right-size IT inventory, and […]
Get URL Parameters in a ServiceNow Client Script & Catalog Client Script
Create a onload client script function onLoad() { var emp_sys_id = getParmVal(‘sysparm_emp_sys_id’); } function getParmVal(name) { // get the current URL var url = document.URL.parseQuery(); // decode the URL if (url[name]) { return decodeURI(url[name]); } else { return; } }
Convert LDAP attribute objectGUID from base64 to string in ServiceNow LDAP integration – Transform script
answer = (function transformEntry(source) { function toHex(d) { return (“0” + Number(d).toString(16)).slice(-2).toUpperCase(); } function a2b(a) { var b, c, d, e = {}, f = 0, g = 0, h = “”, i = String.fromCharCode, j = a.length; for (b = 0; 64 > b; b++) e[“ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/”.charAt(b)] = b; for (c = 0; j > […]