Add Items to Array

Now, when there is need to map more than one array object in same array, you can add items to the array. Each item can be mapped with different values.

For example, If one item is mapped with the flow input, the other can be mapped with literal values.

You can add an item to array:

  1. For an unmapped array

    You can add an item in an unmapped array.

    Note: Use the Configure with Items option for adding a single item.
  2. For empty for.each() array

    You can also add an item to an empty For.each() array.

    Note:
    • For all pre-existing array mappings with empty array.foreach() the properties are displayed as array item and the array level mapping is not editable.

    • On adding empty array.foreach(), input mapper at array level turns to non editable.

    • Elements under existing array mapping which has array.foreach() without source are wrapped in an item object.

  3. Primitive data type array

    An item can even be added to an empty primitive data type array.

Note:
  • Add item option is not available for an array of type 'any'.
  • On importing an app with inline array mapping, array elements are wrapped in an item object.
  • On adding items under an array, mapping cannot be done at the item-level