Script to fetch variable data into a field in flow designer

Surendra6
Tera Contributor

Hello,

 

I tried to fetch the variable data in a record in one table using flow designer. But whenever I tried with below code it is not fetching data.

 

Requested = fd_data._1__get_catalog_variables.requested_for;

Description = fd_data._1__get_catalog_variables.description;

 

Please help to fetch data through flow designer in a field.

 

Thanks!!

3 REPLIES 3

AnveshKumar M
Tera Sage
Tera Sage

Hi @Surendra6 ,

What is your requirement, I mean what do you want to achieve with this script?

And what is the trigger condition for the flow?

 

 

Thanks,
Anvesh

OlaN
Giga Sage
Giga Sage

Hi,

A custom inline script in Flow designer must return a value, that will be put into the field you are scripting on.

So a very simple example would be something like this:

var someText = fd_data._1__get_catalog_variables.description.toString();

return someText.substring(0,3);  // return first 3 characters of the string