TwentyDEV icon

TwentyDEV

Consume the Twenty API

Actions252

Overview

This node operation allows you to create multiple "View Groups" in a batch. It is useful when you need to programmatically add several view groups at once, for example, when setting up or updating configurations that involve grouping views in a system. This can save time compared to creating each view group individually.

A practical example would be automating the setup of user interface components or dashboards where multiple view groups define different sections or filters.

Properties

Name Meaning
Depth Determines how much nested related object information is included in the response:
- 0: Only the primary object's information.
- 1: Primary object plus its directly related objects.
- 2: Primary object, its related objects, and their related objects.
Body JSON object representing the data for the view groups to create. This should include the necessary fields such as fieldMetadataId and any other required properties for the view groups.

Output

The output contains a JSON field with the created view groups' details. The structure reflects the newly created objects including any nested related objects depending on the selected depth level. This allows you to immediately use or reference the created view groups in subsequent workflow steps.

No binary data output is indicated for this operation.

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 request headers specify JSON content type and accept JSON responses.

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 credential is correctly set up.
  • Depth Parameter Misuse: Using unsupported depth values may result in unexpected responses or errors. Use only 0, 1, or 2 as specified.
  • API Limitations: Creating many view groups at once might hit API rate limits or payload size restrictions. Consider batching requests if errors occur.

Links and References

Discussion