Actions35
- Adjustments Actions
- Assemblies Actions
- Batches Actions
- Companies Actions
- Contacts Actions
- Custom Fields Actions
- File Attachments Actions
- Inventory Actions
- Invoices Actions
- Locations Actions
- Orders Actions
- Packages Actions
- Payment Methods Actions
- Product POS Mappings Actions
- Products Actions
- Purchases Actions
- Strains Actions
- Test Results Actions
- Users Actions
Custom Fields → Post
AI-generatedOverview
This node operation creates a new custom field in the Distru system. It is useful for users who want to add custom metadata fields to various parent objects such as products, companies, contacts, orders, or batches. For example, a user might add a custom text field to products to track additional product details or a dropdown field to orders for custom status tracking.
Use Case Examples
- Adding a custom text field named 'Expiration Date' to products to track product expiry.
- Creating a dropdown custom field named 'Order Priority' for orders to categorize order urgency.
Properties
| Name | Meaning |
|---|---|
| Name | The name of the custom field to be created. |
| Parent Object | The type of parent object the custom field will be associated with (e.g., product, company, contact, order, batch). |
| Field Type | The data type of the custom field (text, date, dropdown, or checkbox). |
| Additional Fields | Optional additional settings for the custom field such as description, whether it is filterable, and options for dropdown or checkbox types. |
Output
JSON
json- The response data from the Distru API representing the created custom field, including its properties and identifiers.
Dependencies
- Requires an API token credential for the Distru API to authenticate requests.
Troubleshooting
- Error 'Distru API token is not set' indicates missing or invalid API credentials; ensure the API token is correctly configured in the node credentials.
- Error 'Resource ID is required' will not occur in this operation as it does not require a resource ID parameter.
- If the operation is unsupported, the node throws 'Unsupported operation' error; verify the operation name is correct.
- Missing binary data error does not apply to this operation as it does not handle file uploads.