Mapping an array to the specific fields
I'm having some issues with a mapping on an integration.
This integration will receive an array of properties like this bellow:
id : 1,
id : 2.
Each item of this array must be mapped to a specific field on the next call, like this:
I tried this by inserting a for each object on the flow, and mapping each item of the array to the corresponding field. This mapping is placed inside the foreach, and the rest call is placed outside. But this isn't working, it only maps the last item on the array, it overides the already filled fields on the previous iterations of the forEach. By putting the rest call inside the forEach too, I will have this rest call being made multiple times, which isn't viable on this case.