Send approval to multiple groups manager [ List collector type ]

BiswalNayak
Tera Contributor

I have a catalog item called “ServiceNow Access Request” with two variables:

1.On Behalf Of (reference to sys_user)

2.Selected Groups (list collector of  sys_user_group)

- I want to build a flow where the approval goes at the same time to: The line manager of the user selected in On Behalf Of

- The managers of all groups selected in the Select Groups variable

 

Here how can i send approval to multiple groups manger if it is list collector type.

1 REPLY 1

SohamTipnis
Mega Sage

Hi @BiswalNayak ,

 

This a simple approach using Flow Designer, you can use the following steps in flow designer.

 

  1. Trigger flow on Catalog Item Requested.

  2. Look Up Record (sys_user) using On Behalf Of and get the user’s manager.

  3. Add For Each on Selected Groups.

    • Inside the loop, Look Up Record (sys_user_group) using current sys_id.

    • Collect each group’s manager into a user list.

  4. Use Ask for Approval and pass:

    • Line manager

    • Group managers list

This sends approvals in parallel to all managers.

 

You can Handle cases where a group has no manager and remove duplicates if needed.

 

If my response is useful please mark it as Helpful and Correct.😊

 

Regards,

Soham

ServiceNow Developer ||  Techincal Consultant