- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-03-2023 06:37 PM
While submitting a request there is a variable called manager, it sends the approver to the manager once the manager approved the it goes to one 'xyz' group. if the manager approves the request then we need to skip the group approval of the request as he was already present in that group.
note: manager approval was coming at request level and group approval was coming at ritm level.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 02:10 AM
Hey @Ak8977
So if that is the case, you can modify a little bit to achieve it.
In the Look Up Group Member Records step, query with the Approval Group and the previous Approver.
Then if there's no records found, we Ask for Approval from the Group.
And, just do your next steps below.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 01:53 AM
script is not handy
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-03-2023 08:01 PM
Hi @Ak8977
Yes you can achieve it. Let's try the below approach to filter out someone from the approval group.
1. Query to the Group Members [sys_user_grmember] table.
2. Add the condition User is not the Manager, then collect all the rest Users that are members of the group.
3. Use action Look Up Records, query to User [sys_user] table with the above users
4. At the Ask for approval action, drop the Users record return from the step 3.
Sample.
You can also build your own custom action to do filter out the previous approver and collect the member sys_id.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 01:43 AM
Hello @Tai Vu ,
Thank you for your reply.
But, I don't want to send approval to the group if already one of the member approved the request item.
for suppose 'x' is the manager in abc group.
If he approves the request then we need to skip sending approvals for whole abc group.
thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 02:10 AM
Hey @Ak8977
So if that is the case, you can modify a little bit to achieve it.
In the Look Up Group Member Records step, query with the Approval Group and the previous Approver.
Then if there's no records found, we Ask for Approval from the Group.
And, just do your next steps below.
Cheers,
Tai Vu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-04-2023 04:42 AM
Thank you very much @Tai Vu
