How to access the catalog item variable in script section of approval action in flow designer

Sumit35
Tera Contributor

How to access the catalog item variable in script section of approval action in flow designer

find_real_file.png

11 REPLIES 11

Muralidharan BS
Mega Sage
Mega Sage

Hi Sumit,

Try the flow variables like below, 

 

var field1 = fd_data.trigger.current.variables.variable_name;


Kindly mark my response correct and helpful if my suggestion resolved your query,

 

Thanks

Murali

find_real_file.png

 

I am getting this error when used above syntax.

Kindly help.

 

Regards,

Sumit Jumale

Hi Sumit,

 

Kindly try the below, the current shouldnt be used here.

 

var field1 = fd_data.trigger.request_item.variables.type_in_the_text;
return field1;

 

Kindly mark my response correct and helpful if my suggestion resolved your query,

 

Thanks

Murali

 

find_real_file.png

I have used above script to print the variable value in log. 

I get below output.

 

find_real_file.png