How to enable that Dataraptor return array of objects even when only 1 object is returned
Quality work comes with price
Problem- Had an issue, where omniscript using dataratpor was breaking as the data returned was not in form of an array.
This problem happens when dataraptor returns only a single node to data, its output as an object, rather than an array of objects.
What we need it as below:-
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.
Please feel free to share your thoughts and comments.
Setup > debug mode > select the one under lightning components