How to use switch in workflow.

Varsha
Tera Expert

I have a requirement, I have a field "Type of Request" which is a dropdown field in my catalog item.I have 5 type of request .Based on type of request I have different workflows. So i have used switch statement. But for first 2 request type it is working properly but for the last 3 type of request, switch is not working properly.Can any one please help me with how to use switch in workflow.

6 REPLIES 6

Can you add a run script or a log activity to print the value of the variable before entering the switch statement? If that doesn't work, I use the below pattern when requiring multiple conditions in workflow.

https://www.youtube.com/watch?v=xASTCgmSueI

Hi,

Thank you for this. So what isn't working properly? Meaning for the 3rd option, it's not requesting approval? And the 5th option it's not setting the values? Is it progressing down any of that part of the workflow at all?

As long as those conditions populated by themselves as soon as you dragged the switch on to the canvas, then that should be fine. If they didn't and you added them in? Or you edited the variable afterward it was placed on the canvas? Please remove the switch activity and re-add it to your canvas.

Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!