Merge tasks collect desired playbook data and combine them into a single array. This array—the merge result—is found in the Raw Data tab of the Playbook Task Details popover.
Merge is useful when consolidating data from upstream task nodes that arrive either as:
Distinct parallel playbook nodes
Example - Merging Parallel Nodes *
objective – Merge the return data of three parallel task nodes into a string array.
Tip: you can also generate this playbook with AI. See Generating with AI.
Build the following playbook:
Configure task A to return the string "A", task B to return "B", and task C to return "C".
Provide the following configuration as input for the Merge task:
Example - Merging Data from Instances of the Same Task *
objective – Use an Unwind task to split a list of objects into individual objects, update each one using a Data Formatter task, and then recombine the modified objects with a Merge task.
Build the following playbook:
Provide the following JSON data as input for the JSON Data parameter of the Unwind task:
The merge condition is a JSON object that tells the system how to group data based on a shared lineage—such as by Playbook Instance, Task, Task Instance, or Path—(lineage grouping), which data to filter, and the required match count for producing the merge result.
Execution-lineage object = A JSON object containing the full sequence of task metadata and outputs that lead to an active execution point.
example
Given the following playbook build configuration:
Provided that the Merge task serves as the reference active execution point, the following are the execution lineages and their corresponding object representations: