Script to fetch variable data into a field in flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2023 09:50 PM
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!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-15-2023 10:07 PM
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?
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2023 01:26 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2023 02:08 AM
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