Dataraptor not returning output as an list of array? – User friendly Tech help

Problem- Had an issue, where omniscript using dataratpor was breaking as the data returned was not in form of an array.

n

This problem happens when dataraptor returns only a single node to data, its output as an object, rather than an array of objects.

n

Like below:-

n

What we need it as below:-

n

n

Workaround:-

n

Add fake node in the output as with data type as a list, in the output path select the parent node, this will translate the single node also into an array object. This is the issue with dataraptor and we are sharing the hacky way of doing it based on our vlocity experience.

n

Please feel free to share your thoughts and comments.

n

Setup > debug mode > select the one under lightning  components

Was this article helpful?
YesNo

Similar Posts