Approval issue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-22-2025 11:11 PM
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();
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2025 12:05 AM
We have limitations to create new business rules. Is there any other way we can achieve this?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2025 01:00 AM
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.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader