Mapping Identical Arrays of Objects
When mapping an array of objects in the input to an identical array of objects (matching property names and data types) in the Upstream Output, keep the following in mind:
- map the array at the root level. The array.forEach() function automatically gets inserted with the array scope and a scoping variable for the scope as its arguments. You need not map the array object properties individually if you want all properties to be mapped and if the object property names are identical. The properties get automatically mapped.
- if you do not want all the properties within the object to be mapped or if the names of object properties do not match, you must map the object properties individually too after mapping the root. If you do not do the child mapping individually, the mismatched properties in the objects remain unmapped if the properties are not marked as required (marked with a red asterisk). If such a property is marked as required, then you see a warning.
- the size of the input array is determined by the size of the array in the Upstream Output to which you are mapping.
To map identical arrays of objects, follow these steps:
Procedure
Related concepts
Copyright © Cloud Software Group, Inc. All rights reserved.