Approval issue

geogeorge
Tera Expert

Hi All,

 

We're implementing group approval for RITM using UI actions, where if any member of the group approves, the approvals to other users should be marked as "not required." However, it seems this isn't functioning correctly. What changes do I need to make in the code to achieve this? It's already set the wait condition to "Anyone to approve."

if (group) {
    var grApprovalGroup = new GlideRecord('sysapproval_group');
    grApprovalGroup.initialize();
    grApprovalGroup.assignment_group = group;
    grApprovalGroup.source_table = current.getTableName();
	grApprovalGroup.comments = current.variables.additional_comments;
    grApprovalGroup.parent = current.sys_id;
    grApprovalGroup.approval = 'requested';
    grApprovalGroup.insert();
}

 

6 REPLIES 6

We have limitations to create new business rules. Is there any other way we can achieve this?

@geogeorge 

If not business rule then you will have to create Flow

Logic already shared above.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader