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();

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.