Mapping an Array to a Non-Array Structure

To map an array to a non-array structure, you must use selectors in the expression.

If the single element comes from an array (array parent) then you must manually add the array index to use. For example, $trigger.body.Passenger[<<index>>].Cost where you must replace <<index>> with the array index whose element you want to map. In the example below, Passenger is a single element that is being mapped to Cost which is an element within the Passenger array. Since you are mapping a single element with an element from within an object residing in an array of objects, you will need to specify the element (by its index number) within the Passenger array whose Cost you want to map to. Suppose you want to map to the Cost in the second element of Passenger you replace <<index>> with 2 in $trigger.body.Passenger[<<index>>].Cost.