Trigger approval to different groups based on value selected in a dropdown on the catalog item

Swati36
Tera Contributor

Hello,

 

We have a requirement to create a workflow ( not flow in flow designer ) to trigger approval to different groups based on the value the user selects in a dropdown variable on the catalog item.

 

We have a catalog item with a variable called "Department" with 3 options ( IT, HR and Procurement ) to select in the dropdown. Based on what option the user selects the workflow should trigger approval to the respective approval group of that department and then proceed further. The groups are something like below - 

 

DepartmentAssignment group
ITIT request approval group
HRHR request approval group
ProcurementProcurement request approval group

 

How can this be achieved in the workflow?

 

 

1 REPLY 1

Swamy Malluri
Tera Guru
Tera Guru

Hi @Swati36 ,

 

Try Try Scripted Approvals in Flow Designer with Flow Variables as shown in the below article.

 

You need to chose toggle scripting rules and build your logic to select the group based on Department selected in the variable value.

 

var approverGroup = "group_sys_id";
return "ApprovesRejectsAnyG["+approverGroup+"]";

 

https://www.servicenow.com/community/now-platform-blog/scripted-approvals-in-flow-designer-with-flow...

 

Or you can ty with if or else action 

 

If I could help you with your Query then, please hit the Thumb Icon and mark as Correct !!

Thank you

 

Thanks

Swamy