TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

The "Find Favorite Duplicates" operation in the Favorites resource is designed to identify duplicate favorite entries based on provided data or IDs. This node is useful when you want to clean up or analyze your favorites by detecting repeated items, which can help maintain data integrity or optimize storage.

Typical use cases include:

  • Detecting duplicate bookmarks or saved items in a user's favorites list.
  • Cleaning up redundant entries before syncing or exporting favorites.
  • Analyzing patterns of duplication for user behavior insights.

Properties

Name Meaning
Depth Determines how deeply nested related objects are included in the response:
- 0: Only the primary favorite object.
- 1: Primary object plus directly related objects.
- 2: Primary object, its related objects, and their related objects.
Data JSON array representing the favorite data objects to check for duplicates. The input should be a valid JSON string that parses into an array of objects.
Ids JSON array of favorite IDs to check for duplicates. The input should be a valid JSON string that parses into an array of IDs (or null values).

Output

The output json field contains the results of the duplicate search. It includes information about the favorite entries identified as duplicates according to the input criteria. The structure will reflect the depth level specified, including nested related objects if requested.

If binary data were involved, it would typically represent attachments or media related to favorites, but this operation focuses on JSON data only.

Dependencies

  • Requires an API key credential to authenticate requests to the external Twenty API service.
  • The node sends HTTP requests with JSON payloads and expects JSON responses.
  • No additional environment variables are explicitly required beyond standard API authentication setup.

Troubleshooting

  • Invalid JSON Input: If the Data or Ids properties contain malformed JSON, the node will fail to parse them. Ensure the JSON strings are correctly formatted.
  • Authentication Errors: Missing or incorrect API credentials will cause authentication failures. Verify that the API key or token is correctly configured.
  • Depth Parameter Misuse: Setting an unsupported depth value may result in incomplete or unexpected data. Use only 0, 1, or 2 as allowed.
  • Empty or Null Inputs: Providing empty arrays or null values might return no results or errors. Make sure to provide meaningful data or IDs for duplicate detection.

Links and References

Discussion