We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

Approval issue

Not applicable

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

Not applicable

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

@Community Alums 

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader