TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

The "Find Workflow Duplicates" operation under the "Workflows" resource is designed to identify duplicate workflows based on specified criteria. This node is useful in scenarios where you want to ensure workflow uniqueness, avoid redundancy, or clean up multiple versions of similar workflows within an automation environment.

For example, if you manage a large number of workflows and want to find duplicates that share the same name and status, this operation can help by returning those duplicates for review or further processing.

Properties

Name Meaning
Depth Determines how much related information is included in the response:
- 0: Only the primary workflow data.
- 1: Primary workflow plus directly related objects.
- 2: Primary workflow, related objects, and their related objects.
Data JSON array specifying criteria to find duplicates. Each object can include properties like "name" (workflow name) and "statuses" (array of statuses such as "DRAFT"). This defines which workflows to consider when searching for duplicates.
Ids JSON array of workflow IDs to limit the search scope. If provided, only workflows with these IDs are checked for duplicates.

Output

The node outputs JSON data representing the found duplicate workflows according to the input criteria. The structure includes the workflows' details and, depending on the Depth property, may include 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 external service providing workflow data.
  • The node uses a base URL configured via credentials to connect to the relevant API endpoint.
  • No additional external dependencies are indicated.

Troubleshooting

  • Invalid JSON in Data or Ids: Since Data and Ids expect JSON input, malformed JSON will cause errors. Ensure valid JSON syntax is used.
  • Empty Results: If no duplicates are found, verify that the criteria in Data and Ids correctly match existing workflows.
  • Authentication Errors: Ensure the API key credential is correctly set up and has sufficient permissions to access workflow data.
  • Depth Misconfiguration: Setting Depth too high might return large payloads; adjust according to needs to optimize performance.

Links and References

  • No direct links available from the source code.
  • For more information on workflow management and deduplication strategies, consult your automation platform's official documentation.

Discussion