How to update Switch variables in Workflow

Cory Hitchings
Giga Guru

Hi all, 

We have a workflow using a switch that determines which approval group should be selected by which application account is selected from the variables within the switch. 

A new application account addition has been requested, but when added it does not appear in the Switch command on the variable and the Switch variable is grayed out, unable to edit. 

Do I need to delete the Switch and recreate / map out all the approvals again? Does this need to be done as each addition is made?   

find_real_file.png

 

find_real_file.png

Currently working in Madrid for the next month or so.  

Thanks for the help! 

6 REPLIES 6

Brian Lancaster
Tera Sage

With your wokflow check out right click on your switch activity and choose add condition. Then put the choice in the name field and in the conditions type activity.result == 'value' where value is the back end value of what was selected.  You can double click on any of your existing results to see what shows.

find_real_file.png

It is possible that there are threshold to how many switch condition can be added. I see there are around 40 switch condition, You can achieve same thing using little bit of script. 

 

Put some if condition and based on that select approval group. It is doable.

True unfortunately there is nothing in docs to confirm.  @Cory Hitchings what type of variable is this?

 

Hi Brian, this is a select box variable.  I couldn't find a way around it, so dropped a new Switch in the workflow and remapped all the variable selections to the appropriate approval groups.   Thanks for the responses!