Skip approval when both users has the same manager

Kasia5
Tera Contributor

Hi

I have the flow with approval step which look for manager of every user from 'Requested for' variable. 

'Requested for' is a List collector variable type.

So when I submit the request then approval goes to manager of user A and to manager of user B, one by one.

Do you know how can I add the condition to skip one approval when both users have he same manager?

 

Thanks in advance for help!

2 REPLIES 2

Ankur Bawiskar
Tera Patron
Tera Patron

@Kasia5 

is it not getting handled OOB i.e. if 2 users are having same manager is it creating 2 approval records now?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Tai Vu
Kilo Patron
Kilo Patron

Hi @Kasia5 

Let's try the below approach.

1. Collect the sys_id of Managers from all of the Requestor.

2. Use the Look Up Records action, set query as Sys ID is one of the sys_ids [1]

3. Then at the Ask for Approval step, drop the User records [2] to the Approver.

 

Cheers,

Tai Vu