One person from each group should Approve in Flow Designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2024 06:19 AM
Hello All,
Advice required on this Requirement - There is a parallel Approval in Flow Designer, from that One person from each group should Approve as well if one person is Approved then Automatically for remaining persons from the same Group should become 'No Longer Required'.
I have tried by Empty the Approval Field on the Ask for Approval actions, so that no record watcher is being created for those approvals, but it is making all Approvers from each group to Approve.
Can any one please suggest me how to achieve this.
Thanks,
S.Swaroop.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-06-2024 04:03 PM
I have created a subflow because we have multiple scenarios like this in our catalog.
Inputs:
- Requested Item is a Reference field to the Requested Item we're approving
- Groups is a List.Group
Outputs:
- Approval Status - I'm simply setting this to the Ask for Approval's Approval State
The most important part is the Ask for Approval. The "Rules" are scripted as such:
var group_list = fd_data.subflow_inputs.groups.getEncodedQuery().slice(8);
return "ApprovesAnyG[" + group_list.replaceAll(",", "]&AnyG[") + "]OrRejectsAnyG[" + group_list + "]";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-17-2025 07:55 AM
This can be done using FlowDesigner approval rules in both drag-and-drop and scripted format
Drag and drop should look something like this. The two groups have to be added separately with AND between them translating to 'Anyone from each group'. If the groups are added instead in the same box, then this would translate to ''Anyone from all groups'.
Using scripted approvals the code should be like this
AnyG['group1_sysid']&AnyG['group2_sysid']