Add Items to Array

Now, when there is a need to map more than one array object in the 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 the 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 an array item and the array level mapping is not editable.

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

    • Elements under an existing array mapping that 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 copying an app to a workspace, which has 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