Merge ExecModule
Overview
MergeModule version 2.0.0 combines one or more workflow objects or arrays in a stable source order. It is a local, side-effect-free transformation: it does not need network access or an IntegrationAccount, and it never writes to an external system.
Version 2 replaces catalog metadata that exposed zero inputs, malformed output names, and only one generic configuration field. It also rejects missing sources, mixed types, malformed keyed records, duplicate source paths, invalid strategies, unsafe aliases, excessive nesting, and result-limit breaches without returning partial data.
Usage
- Put the object or array values in workflow state.
- Configure
sourcesas an ordered JSON array of paths to those values. - Choose a conflict
strategyfor object fields or duplicate keyed array records. - For arrays, set
merge_keyto coalesce object records by a nested key; omit it to concatenate. - Set
max_output_itemsandmax_depthfor the downstream workload. - Read the result from canonical
data; arrays are also available asitems. The configuredoutput_fieldis a compatibility alias.
Inputs
| Name | Type | Required | Limit | Description |
|---|---|---|---|---|
sources | objects or arrays | Yes | 1–32 source paths | Values resolved from the ordered sources configuration. |
Every resolved value must be an object, or every value must be an array. Mixing object and array sources fails the complete execution. In keyed-array mode, every item must be an object with a non-null value at merge_key.
Outputs
| Name | Type | Condition | Description |
|---|---|---|---|
status | string | Always | success or error. |
data | object or array | Success | Canonical merged result. |
items | array | Array success | Canonical array result. |
merged_data | object or array | Default alias | Compatibility alias selected by the default output_field. |
count | integer | Success | Top-level object fields or array items in the result. |
sourceCount | integer | Success | Number of validated sources. |
mode | string | Success | object, array_concat, or array_by_key. |
errorCode | string | Error | Stable machine-readable failure code. |
error | string | Error | Safe, actionable failure message. |
IntegrationAccount Requirements
None. MergeModule operates only on in-memory workflow data and must not receive credentials. Merged data is classified as confidential because combining records can increase sensitivity; downstream workflows must preserve normal ACL and data-handling controls.