Actions100
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Item Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
This node is designed to list fields from a specified collection in a data source. It is useful when you want to retrieve metadata about the fields (columns) of a particular collection (table or dataset). For example, it can be used to dynamically fetch field information for building user interfaces, validating input data, or automating workflows that depend on the structure of a collection.
Properties
Name | Meaning |
---|---|
Collection Name | The name of the collection from which to list fields. This is a required option. |
Split Into Items | A boolean flag indicating whether to output each element of an array as its own item. |
- Collection Name: Select the target collection whose fields you want to list.
- Split Into Items: If enabled, the node will output each field as a separate item instead of a single aggregated output.
Output
The node outputs JSON data representing the fields of the selected collection. Each field typically includes metadata such as field name, type, and other attributes describing the field's properties.
If "Split Into Items" is enabled, each field will be output as an individual item, allowing further processing on a per-field basis.
No binary data output is indicated by the provided code.
Dependencies
- Requires access to the underlying data source or API that provides collection and field metadata.
- Needs appropriate authentication credentials configured in n8n to connect to the data source.
- The node depends on internal methods for loading options and routing actions, but these are abstracted away from the user.
Troubleshooting
- Empty or missing collection name: Ensure the "Collection Name" property is set correctly; otherwise, the node cannot retrieve fields.
- Authentication errors: Verify that the API key or authentication token is valid and has permissions to read collection metadata.
- No fields returned: Confirm that the specified collection exists and contains fields.
- Unexpected output format: Check if "Split Into Items" is set according to your expected output structure.
Links and References
- Refer to the documentation of the connected data source or API for details on collections and fields.
- Consult n8n documentation on how to configure credentials and use nodes with dynamic options.