one variable has more than 40 choices keeps on increasing day by day i have done with workflow

srikriti
Tera Contributor

Hi All,

In catalog item there is an variable "Select the group" has 30+choices there is a chances adding more choices further also 
Requirement is that for every choice selection there will be an separate approval group approval should be trigger in the workflow how should be do it 
i am new to the workflow please guide me on this

Thanks

1 ACCEPTED SOLUTION

@srikriti 

Hope you are doing good.

Did my reply answer your question?

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

View solution in original post

9 REPLIES 9

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @srikriti 

 

1st is, better to move those choices in to Reference field and then it is easy for you use that in flow as variables. You can use If logic and action can be defined.

 

https://www.servicenow.com/community/developer-forum/set-value-of-choice-field-in-flow-designer/m-p/...

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi,

@Dr Atul G- LNG ,

In catalog item there is a workflow should be added there is no choice adding flow designer here
so i have created a workflow with switch 30+choices and all choices separate approval group  but the problem is workflow becomes lengthy and everyday was   requirement on adding new choices  along with approval.
so is there is any other way we can use instead of switch operation here in workflow .

srikriti_0-1738756274406.pngsrikriti_1-1738756329594.png

 

 

 

Hi @srikriti 

 

Agree, that more values will create more issues and make it lengthy, so the first is to move from choice to Reference type, and as Ankur also said, create a custom table and bring choices as reference filed. The using of flow is still the better option, not the workflow. Also, try to see if 2/3 of the choices have the same approval at least the first level try to combine to short the flow else no way mate.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

HI @srikriti 

 

I also suggested the same thing, is my answer correct??

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************