Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Collection → List
AI-generatedOverview
This node operation lists collections from a Directus API. It is useful for retrieving a list of available collections in a Directus project, which can then be used for further processing or integration in workflows. For example, it can be used to dynamically fetch collections for data synchronization or reporting purposes.
Use Case Examples
- List all collections in a Directus project to display their names and IDs.
- Fetch collections and split the output so each collection is processed individually in subsequent workflow steps.
Properties
| Name | Meaning |
|---|---|
| Split Into Items | Determines whether to output each element of the collections array as its own item, allowing individual processing of each collection. |
Output
JSON
collections- An array of collection objects retrieved from the Directus API.
Dependencies
- Directus API access with appropriate authentication
Troubleshooting
- Ensure the API credentials are correctly configured to avoid authentication errors.
- If no collections are returned, verify that the Directus project has collections defined and the user has permission to access them.
- If 'Split Into Items' is enabled but the output is not splitting, check that the response data is correctly formatted as an array.
Links
- Directus Collections API Documentation - Official documentation for the Directus Collections API, detailing endpoints and usage.