Filtering data#
Filtering in n8n can mean different things depending on what you want to accomplish. This guide covers both visual filtering in the UI and data filtering during workflow execution.
Filter data visually in the UI#
Feature availability
Available on Community, Cloud Pro, and Enterprise plans.
Search and filter data in the node INPUT and OUTPUT panels. Use this to check your node's data and find specific items.
To search:
- In a node, select Search
in the INPUT or OUTPUT panel. - Enter your search term.
n8n filters as you type, displaying the objects or rows containing the term.
Filtering is purely visual: n8n doesn't change or delete data. The filter resets when you close and reopen the node.
Filter data during workflow execution#
To actually remove or filter data in your workflow, use these approaches:
Filter out items#
To remove entire items from your workflow based on conditions, use the Filter node. This node evaluates conditions and only passes through items that meet your criteria.
Filter out fields#
To remove specific fields from an item or object while keeping the item itself, use the Edit Fields (Set) node. Configure it to remove the fields you don't need.
Filter array elements#
To filter elements within an array inside an item, use the .filter() method in an expression or Code node. For example:
1 | |
This removes array elements that don't match your condition while preserving the item structure.
Filter out duplicate items from previous executions#
To remove items that have been seen in previous executions of a workflow, use the Remove Duplicates node. Use this when an event fires multiple times but you only want to process the first occurrence.