Variables

Collect Block

Collect adds one or more values to a list variable and can deduplicate items by a key.

At a glance

Best for
List accumulation
Input
One or more values
Deduping
Optional unique key
Error handle
No

What it does

Collect builds up one output list as a Flow runs. The same Collect block keeps that list across Loop iterations.

You can add several ordered values in one execution. A lone variable reference preserves its type, and list inputs are spread into the collection.

Use it when

  • Accumulate items across Loop iterations.
  • Merge rows from several extraction steps.
  • Deduplicate objects by a stable field.

Do not use it when

  • You only need to set one variable; use Set Variable.
  • You need file output; use Create Spreadsheet or Save File after Collect.
  • Items do not have a stable key but deduplication is required.

Settings

Collect needs an output list variable, at least one value, and optional duplicate and maximum-item behavior.

Output variable

Required: Yes
Variables
Variable name
Description
New list variable produced by this Collect block.

Values

Required: Yes
Variables
Yes
Description
One or more ordered values or list variables to add.

Unique by

Required: No
Variables
No
Description
Dot-path key used to deduplicate object items.

Duplicate strategy

Required: No
Variables
No
Description
Keep first, keep last, or merge non-empty values.

Max items

Required: No
Variables
Yes
Description
Caps how many items can be collected.

Outputs

Collect produces the output list and reports collection stats.

{{outputVariableName}}array

Updated collection list.

statsobject

Counts for added, skipped duplicate, updated, total, and cap status.

Example Flow

Collect is useful inside loops or after several extraction blocks produce compatible rows.

  1. Create or extract one or more compatible values or lists.
  2. Add each input to the Collect Block’s Values list.
  3. Export the final list after the loop or branches finish.

Errors and fixes

Start with symptoms visible in the editor or Inspector, then check the earliest Block that produced the wrong page state, variable, or output.

Duplicates still appear.

Check
Check the Unique by path and whether the key is non-empty on every item.
Fix
Use a stable key field or adjust duplicate strategy.

The list stops growing.

Check
Check Max items and cap status.
Fix
Raise or remove the cap if more items should be collected.

Local and cloud runs

Local and cloud runtimes both combine ordered inputs, spread list values, and support unique-key deduplication.