Variable script to fetch data in a field using flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-14-2023 01:15 PM - edited 04-14-2023 01:17 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-14-2023 01:29 PM
Hi
To fetch the variable data in a record in one table using Flow Designer in ServiceNow, you can follow these steps:
- Open Flow Designer and create a new flow.
- Drag the "Query records" action onto the canvas and configure it to query the table where the record you want to fetch the variable data from is stored. You may need to use the "Filter conditions" field to specify the record you want to retrieve by its sys_id or other unique identifier.
- Drag the "Get variable value" action onto the canvas and configure it to retrieve the value of the variable from the record you queried in step 2. You will need to specify the name of the variable and the name of the field where the variable value is stored.
- Connect the two actions by dragging the arrow from the "Query records" action to the "Get variable value" action.
- Save and run the flow.
This will allow you to fetch the value of a variable from a record in one table using Flow Designer in ServiceNow. Note that the exact steps and configuration options may vary depending on the version of ServiceNow you are using and the specific requirements of your use case.
Thanks,
Rahul Kumar
Thanks,
Rahul Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2023 01:44 PM
Rahul,
I think this solution will fix an issue I am having in one of my flows, however, I do not have the Query records or the Get Variable value actions in my flow designer. Are these standard actions? I'm on Tokyo.