How do we pass the output from Rest Step and Parse Response step in Integration Hub to another step/action/subflow in a Flow Designer?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 12:53 PM
How do we pass the output from Rest Step and Parse Response step in Integration Hub to another step/action/subflow in a Flow Designer? I want to utilize it for further data manipulation or record creation in a custom table. Tried to use Create Record Action step after Parse Response but this does not provide dynamic data population option.
- Labels:
-
Integrations

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-01-2019 01:25 PM
Hi,
When configuring the action make sure that you define Output variables on the Parse Response step, as well as, the action outputs like so:
Parse Response Step Outputs:
Action Outputs:
Then in your flow you'll be able to utilize the output variables as data pills in any subsequent actions/subflows/etc:
Hope this helps.
--David
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2019 09:42 AM
Hi David,
This helps and I created a separate action(Step 2) after the Rest and Parse action(Step1), that is now able to accept the output from step1 and create records in a table. Now my challenge here is I have multiple records that come in the response, and I need to pass all the records in the output, not sure if Service Now supports array of output records in this scenario.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2019 10:24 AM
You should be able to pass the stringified array/object as your output. Then wherever you are going to consume the response/output simply parse back to the array/object then utilize as necessary. For example if you are receiving multiple records in the response and you want to insert those records into a table you could utilize the stringified array/object in a script step then loop through the values and insert into the respective tables.