Skip approval when both users has the same manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 12:58 AM
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 01:15 AM
is it not getting handled OOB i.e. if 2 users are having same manager is it creating 2 approval records now?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-12-2023 03:04 AM
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