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?

Rimi
Kilo Contributor

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.

3 REPLIES 3

DScroggins
Kilo Sage

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:

find_real_file.png

 

Action Outputs:

find_real_file.png

 

Then in your flow you'll be able to utilize the output variables as data pills in any subsequent actions/subflows/etc:

find_real_file.png

 

Hope this helps.

--David

Rimi
Kilo Contributor

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. 

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.