Configuration
| Setting | Description |
|---|---|
| Value | Number of records to keep (must be greater than 0) |
| Mode | Head (first N records — default) or Tail (last N records) |
How It Works
Output
The first or last N records from the input. If the dataset has fewer records than the specified value, all records are kept.Example
Get the top 10 accounts by revenue:- Sort → Revenue (descending)
- Head/Tail → Value: 10, Mode: Head
Best Practices
- Always Sort before Head/Tail if the order matters — without sorting, Head/Tail returns arbitrary records
- Use Head to sample data during testing (e.g., limit to 5 records before an AI Enrichment node)
- Use Tail to get the most recent records when data is sorted by date
Related Nodes
- Sort — order records before limiting with Head/Tail
- Simple Filter — filter by conditions rather than position