--- alias: user-guide-automation-task-core-mergearray tags: - automation tasks description: "This task merges input fields into a single array for streamlined processing" --- # Merge Array ![image71][image71] This task merges multiple input fields into a single array. It collects values from the inputs, optionally enforces type consistency, and flattens the result for easy processing. ![mainImage][mainImage] ## Inputs | Name | Data Type | Description | |----------|-----------|-------------------------------| | Activate | `any` | Activate the merge array task | ## Outputs | Name | Data Type | Description | | ------ | ---------| --------- | |MergedArray | `any` | Final merged array | |Success | `Boolean` | If there was no problem emits a true | |Error | `Error` | Error that occurred during the processing of this task | ## Settings On the *General Tab*, you have the usual settings and the following settings: | Name | Data Type | Default | Description | | ------ | ---------| --------- | --------- | | enforceType | `Boolean` | True | Flag indicating if inputs must have the same type (if there are inputs with different types, it raises an error)| ## Behavior When the task is activated, the task will merge the inputs into an array. ## Remarks There is no particular remark to be made. [image71]: ../images/arithmeticoperation-lg.svg [mainImage]: ../images/merge_array.png