Flow designer

vikaskumarc
Tera Contributor

When user selects Options' is 'Active Directory Group (LAN)' AND 'Additional Options/Active Directory Group not found' is 'Update Ownership of an Active Directory Group', we require the ability to be able to update ownership of active directory groups for MANY groups.  (FOR THIS I HAVE CREATED MRVS)
-We may to change the original 'Group Name' referenced field to include a selection table where multiple can be utilized. The form layout needs to be able to handle multiple group ownership changes in 1 request AND the workflow needs to function properly where approvals for each appropriate group is submitted as well. (FOR THIS I HAVE CREATED MRVS)
-In scenarios where IF 3 AD ownership changes is submitted, and 1 manager rejects a request, we should be able to move on to the other 2 outstanding and omit the one that got rejected.
How to achieve this in flow designer.

1 REPLY 1

kmohammed
Tera Guru

Hi vikaskumarc — this is achievable, and the MRVS is the right starting point. The key design is to process one row at a time and keep each group's approval independent, so a rejection cannot block the others. Here is the shape I would use:

 

1. Keep one row per group in the MRVS. Each row should carry the Group Name (reference to the AD group), the new owner, and any other fields the change needs. One request then covers many groups, and the flow can read the rows one by one. You do not need to change the single 'Group Name' reference field into a multi-select — the MRVS already gives you the multi-group input.

2. In the flow, use a For Each loop over the MRVS rows (the rows are available on the requested item / RITM variables). Inside the loop, look up the group record and read its manager — that is the approver for that row.

3. For the approval, trigger a subflow per row (the Run Subflow action) rather than putting the approval directly in the main flow. The subflow takes the group and the new owner as inputs, asks that group's manager for approval, and runs the ownership update only if it is approved. Because each row gets its own subflow execution, a rejection ends only that subflow — the loop moves on to the next row and the other groups are unaffected. That is exactly the behaviour you described: 1 rejection out of 3 leaves the other 2 to proceed.

4. A note on timing: the For Each loop processes the rows one after another, so the approvals happen sequentially rather than all at once. That is fine for your requirement — what matters is that they are independent, so one rejection does not stop the others. 'Do the following in parallel' only supports a fixed number of branches, so it does not fit a variable number of groups.

5. Finally, collect the outcome per row (approved or rejected) and report it back on the request, so the requester can see which groups were updated and which were rejected.

 

One thing to validate in your instance: the AD group manager field you read for the approver, and how the ownership update itself is executed — the approval design above is the same either way.