Get catalog task variables in workflow

sidarth
Giga Expert

So I have some variables that are on my catalog item and are hidden on the form.   Now we know that those variables we can get on the request item form and the catalog task form too. I have created a task where I want to give value to those variables. My issue is how to fetch those variables in a workflow(on request item table) so that I can set some conditions based on that.

pic (2).png

So basically Here I have a checkbox and a choice field coming from the catalog item. I want to access those values in my workflow

1 ACCEPTED SOLUTION

Mihir Mohanta
Kilo Sage

Use current.variables.yourvariablename   to get or set values to variables.



Thanks,


Mihir


View solution in original post

9 REPLIES 9

Hi Sidarth,



Are you not able to add it from the Variables on task form window in you catalog task in the workflow editor.


find_real_file.png



Thanks


Uma


I am. But in the advanced script area I want to get the value of those variables


You can use current.variables.variableName , will work in advanced script


Mihir Mohanta
Kilo Sage

Use current.variables.yourvariablename   to get or set values to variables.



Thanks,


Mihir


Thanks it worked.



I also found out that workflow.variables.variable_name works too