Settings
| Setting | What it is |
|---|---|
| Rows | The list to cut short — sort it first if 'first' means something else. |
| Keep | The first N rows, in their incoming order. At least 1. |
Technical details
| Key | Value |
|---|---|
rows | any JSONits `{{ }}` must give an array |
max | number, by default 100 |
Output
| Field | Type |
|---|---|
rows | array |
countKept rows | number |
totalRows that came in | number |
Sample output, and the expression for each field
- count1
- rows
- [0]
- id"INV-001"
- [0]
- 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
}