← All nodes
Sequence

Sequence

Numbers the rows in order and writes the result into a column, with an optional prefix and zero padding.

When to use it

Use it to hand out invoice numbers, line numbers or record ids to rows that arrived without one.

In a pipeline

Settings

SettingTypeRequiredDefault or hint
Generate New Columncheckbox—false
Column Nametext—ID
Start Valuenumber—1
Incrementnumber—1
Prefixtext—e.g. INV-
Suffixtext—e.g. -2026
Zero Paddingnumber—0

Example

Assign invoice numbers

  • Column Name=Invoice No
  • Start Value=1
  • Prefix=INV-
  • Zero Padding=4
Input rows
OrderAmount
A-1120
A-280
A-345
Result
OrderAmountInvoice No
A-1120INV-0001
A-280INV-0002
A-345INV-0003

The counter starts at 1, is padded to four digits, and then the prefix is added.

Worth knowing

  • Numbering follows the current row order, so sort or filter before this node rather than after.
  • With Generate New Column turned off, the sequence overwrites the chosen existing column instead of adding one.
  • Padding applies to the number only, so the prefix does not count toward the digit width.
  • The output is always text, even with no prefix and no padding.

Others in Sequence