Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to avoid group approvals, if the manager is part of that group who already approves it.

Ak8977
Tera Expert

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.

1 ACCEPTED SOLUTION

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.

Timi_0-1701684508693.png

 

Then if there's no records found, we Ask for Approval from the Group.

Timi_1-1701684541388.png

 

And, just do your next steps below.

 

Cheers,

Tai Vu

 

View solution in original post

9 REPLIES 9

Ankur Bawiskar
Tera Patron
Tera Patron

@Ak8977 

you will have to check the group to which it's going and check if the manager is part of that group

you are using flow or workflow?

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

Ak8977
Tera Expert

@Ankur Bawiskar 

I am using flow designer.

@Ak8977 

you can use custom flow action and use script and check this and return true/false if manager is part of the approval group

then use IF action to check value is true/false

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

Hello @Ankur Bawiskar ,
do you have the script for the above. If yes, please share it with me. It would be helpful for me.
thanks,