Merge two arrays into one single array.
Properties
Insertion Mode
: Choose where the merge should occur. Choices are : At the End, At Index, Before ID, After ID
Default : At the End
Merge rules
- If the two arrays have matching IDs, for each matching ID, the items from the second array will overwrite the ones from the first.
- If
Insertion Mode
is set to At Index and the index points to the an index already used by the first array, the values from the second will overwrite the ones from the first. - If
Insertion Mode
is set to At Index and the index points to an index above the next available index, the values from the second will not be part of the merge. - If
Insertion Mode
is set to Before ID or After ID and the ID points to a non-existing ID in the first array, the values from the second array will not be part of the merge. - If some properties are part of only one of the two arrays they will be present in the resulting merged array but the values will be empty for the array who does not have this property.
Inputs
Name | Type | Description |
---|---|---|
Array1 | Array | First array for the merge |
Array2 | Array | Second array for the merge |
AtIndex | Integer | (Only appears if Insertion Mode is set to At Index) Index where the merge should happen. |
BeforeID | String | (Only appears if Insertion Mode is set to Before ID) ID before which the merge should happen. |
AfterID | String | (Only appears if Insertion Mode is set to After ID) ID after which the merge should happen. |
Outputs
Name | Type | Description |
---|---|---|
Array | Array | Resulting array from the merge of the two input arrays |
Example
Need more help with this?
Don’t hesitate to contact us here.