Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

Optimal way to dynamically change approver in Workflow Studio?

MBarrott
Mega Sage

I have a Catalog Item which allows the user to select which department should be approving the request. 

 

In Workflow Studio I'm developing the flow which, based on the selection from the end-user, will determine who gets sent the approval email. i.e. user selects dept_a then approver should be approver_a, if they select dept_b then it's approver_b.

 

I can think of a couple ways to achieve this (Set Flow Vars and if/else logic) but curious if there is a more optimal action or method to achieve the same result. 

2 REPLIES 2

Viraj Hudlikar
Tera Sage
Tera Sage

Hello @MBarrott 

 

If your department field options are limited, then you can go with if else logic else you can explore Decision table.

Getting Started with Decision Tables - Workflow Au... - ServiceNow Community 

 

If my response has helped you hit helpful button and if your concern is solved do mark my response as correct.

Thanks & Regards
Viraj Hudlikar.

Hi @Viraj Hudlikar 

 

I'm actually looking into Decision Tables now but unless I can add values from the flow's data pills then it may be difficult. The department field isn't from the cmn_department table directly.