Send single approver to each manager of multiple groups via catalog item flow

Community Alums
Not applicable

I am building a catalog item to request adding members to groups.  The issue I have currently is that some of these groups have the same manager, so if I just do it based on groups it will send the same manager a separate approval for each group.

 

I'm coming up blank on the best way to get a list of each individual manager and only send them one approval each.

 

Ideally I would like for each set of groups (per manager) approval to be separate, so if one person is requested to add to 5 groups, and 2 of them are denied, the other 3 can still be approved.  Any thoughts on the best way to approach this?

2 REPLIES 2

Sumanth16
Kilo Patron

Hi @Community Alums , 

 

Please refer to below thread:

https://www.servicenow.com/community/developer-blog/using-list-collector-in-flow-designer-for-each-loop-by/ba-p/2267671/page/5

 

Please mark my answer as correct and helpful based on Impact.
 
Thanks & Regards,
Sumanth Meda

Community Alums
Not applicable

That doesn't really help with the exact issue, the issue is having a many to many relationship.  Multiple groups, multiple users...I have to nest 2 for each loops to get them added to the groups.  If I add the approval to either of those for each loops, it will do multiple approvals for each group, no matter if the manager is the same for multiple groups...that's the part I'm trying to figure out.  I only want one approval for each manager, but lump all that managers groups into that approval.