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
File Attachments → Upload
AI-generatedOverview
This node uploads a file attachment to a specified entity within the Distru system. It is useful for automating the process of attaching files such as documents or images to various entities like products, orders, invoices, contacts, and more. For example, you can upload a product specification sheet to a product record or attach an invoice PDF to an invoice entity.
Use Case Examples
- Uploading a product image file to a product entity.
- Attaching a scanned invoice document to an invoice entity.
Properties
| Name | Meaning |
|---|---|
| Binary Property | The binary property containing the file data to upload. |
| Attach To | The type of entity to which the file will be attached (e.g., product, order, invoice). |
| Entity ID | The unique identifier of the entity to which the file will be attached. |
| Additional Fields.Name | Optional display name for the file attachment; defaults to the filename if not provided. |
Output
JSON
data- The response data from the Distru API after uploading the file attachment, containing details about the uploaded file.
Dependencies
- Requires an API token credential for the Distru API.
Troubleshooting
- Error 'Distru API token is not set': Ensure the API token credential is configured correctly in the node credentials.
Error 'Missing binary data in property ""': Verify that the specified binary property contains the file data to upload. - Error 'Resource ID is required': Make sure to provide the entity ID to which the file should be attached.