How to script in flow designer to send approval to different groups for different choices?

Mouktik_B
Tera Contributor

Based on the selection of choices of a field, the approvals are going to different groups non the ritm level. 
How to script that in flow designer?

3 REPLIES 3

Aniket Bhanse
Tera Guru

Why not use a simple "If" condition which Servicenow Flow designer provides rather than doing it from the script?

 

Let me know if this directs you to your solution.

Tai Vu
Kilo Patron
Kilo Patron

Hi @Mouktik_B 

Just go ahead and add the IF ELSE Steps, check for the conditions and ask for group approvals accordingly.

You can define as many steps as you wish.

If you've quite a lot of choices and approvals in your conditions, you can leverage the Decision Builder approach that can help to decouple decision logic.

Exploring Decision Builder

 

Define your Decision Table with the Input Conditions and result of Approval Groups.

In your Flow Designer, use the Make a decision action.

Screenshot 2023-10-30 at 17.36.04.png

 

Let me know if it works for you.

 

Cheers,

Tai Vu

Ankur Bawiskar
Tera Patron
Tera Patron

@Mouktik_B 

you can use scripted approvals in flow or use decision builder

check this link and enhance it as per your requirement

Flow Designer Approvals Overview - Workflow Automation Center of Excellence 

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