Skip to main content
The “Create batches by combining items” step combines multiple input items into a single output item.

Fields

  • Batch size The number of items to combine. Unlimited by default.
  • Destination path The destination path for the combined items. This field uses dot notation.
  • Entity type Entity type for the resulting items.

Example input

Each line is an input item of the transformer.
{"id": 1}
{"id": 2}
{"id": 3}
{"id": 4}
{"id": 5}

Example output

A single item.
{
  "items": [
    {"id": 1},
    {"id": 2},
    {"id": 3},
    {"id": 4},
    {"id": 5}
  ]
}
Note that when there are less input items than the configured batch size the batch will still be created with the items that were received. For example, if the batch size is 5 and there are 12 input items the resulting batch items will have 5, 5 and 2 items.