FlowmageDocs

Limit

Cuts a list down to the first few rows and says how many there were.

Settings

SettingWhat it is
RowsThe list to cut short — sort it first if 'first' means something else.
KeepThe first N rows, in their incoming order. At least 1.
Technical details
KeyValue
rowsany JSONits `{{ }}` must give an array
maxnumber, by default 100

Output

FieldType
rowsarray
countKept rowsnumber
totalRows that came innumber
Sample output, and the expression for each field
  • count1
  • rows
    • [0]
      • id"INV-001"
  • total5

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "max": 100,
    "rows": "<rows>"
  },
  "label": "Limit",
  "type": "list.limit",
  "version": 1
}