- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 12:37 PM
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 ?
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 01:52 PM
Replace your first line to something like this:
var sd = fd_data._1__get_catalog_variables.your_variable_name;

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 12:55 PM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 12:55 PM
Hi
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
Muhammad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 01:40 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-11-2022 01:52 PM
Replace your first line to something like this:
var sd = fd_data._1__get_catalog_variables.your_variable_name;