How to Update variables in a table through Flow Designer.

Munna1
Tera Contributor

Hi All,

I have a requirement to update two variable values in Hardware table through flow designer. These two variables are Yes\No fields in catalog item. I am trying to update these fields by picking the values from the catalog item while raising a request, but these fields are not updating. Is there any other way to update ?

 

1 ACCEPTED SOLUTION

Replace your first line to something like this:

var sd = fd_data._1__get_catalog_variables.your_variable_name;

View solution in original post

6 REPLIES 6

OlaN
Giga Sage
Giga Sage

Hi,

The variables contains a "yes" or "no" value, which is not the same as the checkboxes on the hardware model (they contain true or false).

A solution is to use the catalog variable, and store the value in i Flow variable, then use the contents of the variable to fill the fields.

Another way is to use flow logic, with if/else statements that updates the fields different depending on the value of the catalog variables.

MrMuhammad
Giga Sage

Hi @Munna,

You can try toggling inline script as an alternative.

you can access variable values by typing fd_data. and then selecting the right variables from the popup. 

For example:

var sd = fd_data.trigger.current.short_description;
if(sd == 'yes')
  return true;
else(sd == 'no')
  return false;

Regards,

Muhammad 

Regards,
Muhammad

Hi Muhammad,

Thanks for your response,

But I am trying with this script, but still it returning false. And I did not mentioned any default value.

find_real_file.png
 
Returning false value
find_real_file.png

Replace your first line to something like this:

var sd = fd_data._1__get_catalog_variables.your_variable_name;