User(s) approval - Wait for Condition based on script?

KevPR21
Kilo Guru

I have a form that collects different "Programs" in a list collector field that references a program table with approvers for each program. Each program has one or more approvers. 

I want to create an "Approval - User" activity in the workflow that will require ONE approval from each program. How can I go about this? I basically need the same functionality as the "Wait for An approval from each group" in the "Approval - Group activity"  I need this because my requirements don't allow me to create groups for each program. 

8 REPLIES 8

sachin_namjoshi
Kilo Patron
Kilo Patron

you can use advanced script in approval activity in workflow which iterates through list and push approver in array.

 

Check below for more details

 

https://community.servicenow.com/community?id=community_question&sys_id=03a58feddbd8dbc01dcaf3231f96...

 

Regards,

Sachin

Thanks for your reply.

I already have a script to add the approvers in the Advanced Additional approvers script. The problem is that I need to be able to require an approval from one of the approvers in each individual programs.

Hello @KevPR21 

Did you find a solution to your above requirement ? If yes, please do let me know what it is, as I've got a similar requirement to work upon. 

 

Regards,

Supreeth R

DirkRedeker
Mega Sage

Hi

Maybe you can create a separate task for each selected program, and attach the approval records to these task accordingly.

That way, you can be flexible.

Let me know if that answered your question and mark my answer as correct and helpful, please.

BR Dirk