When you have an output of a flow/subflow of type Array.Object, its output appears unusable when the flow is executed from a script.

It appears the conversion of the array of objects into a simple JSON structure is failing/not happening, and instead what is output from the flow is a raw dump of some kind of object which is unusable as an output of the flow/subflow in a script.

The output is different than expected.  Checked against the output of an action and the output is different.  The output includes the entire serialized version of the CO.  This can be seen in Orlando as well.

Steps to Reproduce

1. Create a subflow with an array.object output
2. Manually add two objects inside the array object
3. Call subflow from script
4. Inspect output


If you are able to upgrade, review the "Where Found/Fixed" and "Fix Targets" tab of the problem record to determine whether any versions have a planned or permanent fix.

Related Problem: PRB1419217

Seen In

There is no data to report.

Intended Fix Version


Safe Harbor Statement

This "Intended Fix Version" information is meant to outline ServiceNow's general product direction and should not be relied upon in making a purchasing decision. The information provided here is for information purposes only and may not be incorporated into any contract. It is not a commitment, promise, or legal obligation to deliver any material, code, or functionality. The development, release, and timing of any features or functionality described for our products remains at ServiceNow's sole discretion.

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2020-09-09 15:49:17