TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node operation, Find Message Channel Message Association Duplicates, is designed to query and identify duplicate message channel message associations within a system. It allows users to specify criteria for searching duplicates based on message association data and IDs, with control over the depth of related object information returned.

Common scenarios where this node would be beneficial include:

  • Cleaning up or auditing messaging systems by detecting redundant or duplicate message associations.
  • Integrating with messaging platforms to ensure data integrity by identifying and handling duplicate entries.
  • Automating workflows that require validation of message associations before processing further actions.

For example, a user might want to find all duplicate incoming message associations in a particular channel to prevent repeated notifications or processing.

Properties

Name Meaning
Depth Determines how much related object information is 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 filter criteria for the search. For example, [{"direction": "INCOMING"}] filters for incoming message associations. This property defines which message associations to consider when finding duplicates.
Ids JSON array of IDs to limit the search scope. For example, [null] means no specific ID filtering; otherwise, it can contain specific message association IDs to check for duplicates.

Output

The node outputs JSON data representing the found duplicate message channel message associations. The structure includes the primary objects and, depending on the Depth setting, nested related objects up to two levels deep.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential to authenticate requests against the Twenty API service.
  • The base URL for API requests is configured dynamically from credentials.
  • The node uses the Twenty API version 1.0.3 OpenAPI specification for request construction.

Troubleshooting

  • Invalid JSON in Data or Ids properties: Since these fields expect valid JSON arrays, malformed JSON will cause errors. Ensure proper JSON formatting.
  • Authentication errors: If the API key or domain credentials are missing or incorrect, the node will fail to connect. Verify credentials configuration.
  • Empty or no results: If no duplicates are found, the output may be empty. Adjust filter criteria or increase Depth to retrieve more detailed related objects.
  • Unsupported Depth values: Only 0, 1, or 2 are valid. Using other values may cause unexpected behavior.

Links and References

Discussion