You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Mapping an array to the specific fields

Accepted answer
edited Jan 14, 2021 2:12PM in Integration 2 comments



I'm having some issues with a mapping on an integration.

This integration will receive an array of properties like this bellow:

id : 1,
value: a
}, {
id : 2.
value: b

Each item of this array must be mapped to a specific field on the next call, like this:

id1: value
id2: value

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.


Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!