Actions14
Overview
This node integrates with the Tiny ERP system to manage products and their variations. Specifically, the Delete Variation operation allows users to remove a specific variation of a product by providing the product's ID and the variation's ID.
Typical use cases include:
- Cleaning up outdated or discontinued product variations.
- Managing inventory by removing incorrect or duplicate variations.
- Automating product catalog maintenance workflows.
For example, if a product has multiple size or color variations and one is no longer available, this operation can delete that particular variation from the product in Tiny ERP.
Properties
| Name | Meaning |
|---|---|
| Product ID | The unique identifier of the product from which a variation will be deleted. |
| Variation ID | The unique identifier of the specific product variation to delete. |
Output
The output JSON object confirms the success of the deletion operation and echoes back the productId and variationId that were processed. It has the following structure:
{
"success": true,
"productId": 123,
"variationId": 456
}
success: Boolean indicating whether the deletion was successful.productId: The ID of the product associated with the deleted variation.variationId: The ID of the deleted variation.
No binary data is produced by this operation.
Dependencies
- Requires an active connection to the Tiny ERP API.
- Needs an API authentication token configured via OAuth2 credentials within n8n.
- The node uses HTTP requests to communicate with Tiny ERP endpoints.
Troubleshooting
Common Issues:
- Providing invalid or non-existent
productIdorvariationIdwill cause errors. - Network connectivity issues may prevent communication with the Tiny ERP API.
- Insufficient permissions on the API key may block deletion operations.
- Providing invalid or non-existent
Error Messages:
"The operation \"deleteVariation\" is not supported!"— This indicates an unsupported operation was requested; ensure the correct operation name is used."The resource \"product\" is not supported!"— Indicates an invalid resource selection.- API errors returned from Tiny ERP (e.g., 404 Not Found) typically mean the product or variation does not exist.
Resolution Tips:
- Verify that the
Product IDandVariation IDare correct and exist in Tiny ERP. - Check API credentials and permissions.
- Ensure network access to the Tiny ERP API endpoint.
- Use the node’s "Continue On Fail" option to handle errors gracefully in workflows.
- Verify that the
Links and References
- Tiny ERP Official API Documentation (Note: link is illustrative, verify actual URL)
- n8n Documentation on Creating Custom Nodes
- OAuth2 Authentication setup in n8n for API integrations