TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node allows users to create multiple "View Filter Groups" in bulk via the Twenty API. It is useful when you need to define complex filtering criteria for views programmatically, especially when dealing with large datasets or automating dashboard configurations. For example, a user might want to create several filter groups that combine different logical conditions (like AND/OR) to segment data views efficiently.

Properties

Name Meaning
Depth Determines how much related nested data is included in the response:
- 0: Only the primary object's information.
- 1: Primary object plus directly related objects.
- 2: Primary object, its related objects, and their related objects.
Body The JSON body representing the View Filter Groups to create. This includes the logical operator (e.g., "AND") and other filter group details as per the system's schema.

Output

The node outputs JSON data representing the created View Filter Groups, including any nested related objects depending on the specified depth level. The output structure reflects the newly created filter groups with their properties and relationships as returned by the API.

No binary data output is indicated.

Dependencies

  • Requires an API key credential to authenticate requests to the Twenty API.
  • The base URL for the API is configured dynamically from credentials.
  • The node uses standard HTTP headers for JSON content negotiation.

Troubleshooting

  • Invalid JSON in Body: If the JSON provided in the Body property is malformed, the node will fail. Ensure the JSON syntax is correct.
  • Authentication Errors: Missing or invalid API credentials will cause authentication failures. Verify that the API key and domain are correctly set in the node credentials.
  • Depth Parameter Misuse: Setting an unsupported depth value may result in incomplete or unexpected data. Use only 0, 1, or 2 as allowed.
  • API Rate Limits or Network Issues: These can cause request failures; check network connectivity and API usage limits.

Links and References

Discussion