Wednesday, March 28, 2018

Make all form fields read only - ServiceNow Client Script

var fields = g_form.getEditableFields();
for (var x = 0; x < fields.length; x++) {
    g_form.setReadOnly(fields[x], true);
}

Thursday, March 22, 2018

ServiceNow group approval through workflow script


var approval_gr = new GlideRecord('sysapproval_group');

approval_gr.initialize();
approval_gr.approval = 'requested';
approval_gr.parent = current.sys_id;
approval_gr.assignment_group = current.assignment_group;
approval_gr.short_description = 'Change Management Approval';
approval_gr.wait_for = 'any';
approval_gr.insert();

Sunday, March 11, 2018

SSO - ServiceNow integration with Microsoft Azure AD

https://docs.microsoft.com/en-us/azure/active-directory/active-directory-saas-servicenow-tutorial