Actions252
- Api Keys Actions
- Attachments Actions
- Blocklists Actions
- Calendar Channel Event Associations Actions
- Find Many Calendar Channel Event Associations
- Create One Calendar Channel Event Association
- Create Many Calendar Channel Event Associations
- Find One Calendar Channel Event Association
- Delete One Calendar Channel Event Association
- Update One Calendar Channel Event Association
- Find Calendar Channel Event Association Duplicates
- Companies Actions
- Calendar Channels Actions
- Calendar Event Participants Actions
- Calendar Events Actions
- Connected Accounts Actions
- Favorite Folders Actions
- Favorites Actions
- Message Channel Message Associations Actions
- Find Many Message Channel Message Associations
- Create One Message Channel Message Association
- Create Many Message Channel Message Associations
- Find One Message Channel Message Association
- Delete One Message Channel Message Association
- Update One Message Channel Message Association
- Find Message Channel Message Association Duplicates
- Message Channels Actions
- Message Folders Actions
- View Fields Actions
- Message Participants Actions
- Messages Actions
- Message Threads Actions
- Notes Actions
- Note Targets Actions
- Opportunities Actions
- People Actions
- Tasks Actions
- Task Targets Actions
- Timeline Activities Actions
- View Filter Groups Actions
- View Filters Actions
- View Groups Actions
- Views Actions
- View Sorts Actions
- Webhooks Actions
- Workflow Automated Triggers Actions
- Workflow Runs Actions
- Workflows Actions
- Workflow Versions Actions
- Workspace Members Actions
Overview
This node operation, Find View Filter Duplicates, is designed to identify duplicate view filters within a system. It allows users to specify certain criteria and data points to search for duplicates based on the provided filter metadata and IDs. This can be particularly useful in scenarios where managing and cleaning up redundant or overlapping filters is necessary to maintain data integrity and optimize query performance.
Practical examples include:
- Detecting duplicate saved filters in a dashboard or reporting tool.
- Cleaning up redundant view filters before sharing or exporting configurations.
- Automating maintenance tasks that require identifying and handling duplicate filter definitions.
Properties
| Name | Meaning |
|---|---|
| Depth | Determines how deeply nested related objects are included in the response: - 0: Only the primary object's information. - 1: Primary object plus directly related objects (no further nesting). - 2: Primary object, its related objects, and their related objects. |
| Data | JSON array specifying the filter metadata to use for finding duplicates. Each item typically includes a fieldMetadataId which identifies specific fields involved in the filter criteria. |
| Ids | JSON array of IDs to limit the search scope for duplicates. Can be used to specify particular view filter IDs to check against. |
Output
The node outputs JSON data representing the found duplicate view filters according to the specified criteria. The structure will include details about each duplicate filter detected, potentially including nested related objects depending on the Depth property setting.
If binary data output is supported by the underlying API or implementation, it would generally represent attachments or files related to the filters, but this is not indicated in the provided code or properties.
Dependencies
- Requires an API key credential to authenticate requests to the external Twenty API service.
- The node uses the Twenty API base URL configured via credentials.
- The node depends on the
@devlikeapro/n8n-openapi-nodepackage and a bundled OpenAPI specification (twenty-v1.0.3-openapi.json) to build its properties and handle requests.
Troubleshooting
- Invalid JSON in Data or Ids: Since
DataandIdsexpect JSON input, malformed JSON will cause errors. Ensure valid JSON syntax when entering these fields. - Authentication Errors: Missing or incorrect API credentials will prevent successful API calls. Verify that the API key and domain are correctly set in the node credentials.
- No Duplicates Found: If no duplicates are returned, verify that the
DataandIdsinputs correctly reflect existing filters and that theDepthlevel is appropriate for your needs. - Unexpected Response Structure: Adjust the
Depthproperty if related objects are missing or too deeply nested in the response.
Links and References
- Twenty API Documentation (hypothetical link as the actual API docs are not provided)
- n8n Documentation on Creating Custom Nodes
- JSON Syntax Validator – Useful for validating JSON input in
DataandIdsproperties.