Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / datatransformation

Limit

Cap the number of items that flow through the workflow

Data ExtensionWeb app

Cap the number of items that flow through the workflow.

Limit takes the whole list of incoming items at once and keeps at most Max Items of them: either the first ones or the last ones. Everything beyond the limit is dropped.

If the list already has fewer items than the limit, it passes through unchanged. A single object counts as a list of one.

  • Try a workflow on a small sample of a large list before running it on everything.
  • Keep only the most recent (or earliest) records, for example the last 5 rows after a Sort.
  • Protect an AI model or an outside service from being called for hundreds of items at once.
  • To drop items by a condition rather than by count, use Filter instead.
SettingTypeWhat it does
Max Items NumberThe maximum number of items to keep. Default: 10
Keep ChoiceWhether to keep the first or the last items. Options: First items, Last items. Default: First items

Max Items must be a whole number of at least 1.

  • Output

The kept items, unchanged and in their original order. The next node runs once per kept item.

None. This node needs no connection and has no slots for other nodes.

  1. Get All Link collects every link on the current page.
  2. Limit with Max Items 5 and Keep First items.
  3. Get All Text from Link reads only those five pages.
  • “No source node is connected to this node.” Limit has no input. Connect the node that produces the list.
  • Limit seems to have no effect. The node before it sends one object that contains a list, not a list of items. Use Split Out first to turn that list into items.
  • Filter: keep items that match a condition.
  • Sort: order items before keeping the first or last.
  • Split Out: turn a list inside one item into separate items.
  • Remove Duplicates: drop repeated items.
Edit page

Last updated:

Was this page useful?
Ask Aria about Limit