Actions72
- Bài Viết Actions
- Blog Actions
- Bộ Sưu Tập Actions
- Khách Hàng Actions
- Đơn Hàng Actions
- Trang Actions
- Sản Phẩm Actions
- Biến Thể Sản Phẩm Actions
Biến Thể Sản Phẩm → Xóa
AI-generatedOverview
This node manages custom metafields on various Sapo resources, including product variants. Specifically, the "Xóa" (Delete) operation removes a custom metafield from a specified resource variant by its ID. This is useful when you want to clean up or remove obsolete custom metadata associated with product variants in your Sapo store.
Common scenarios include:
- Removing outdated or incorrect custom fields from product variants.
- Automating cleanup of metafields during product data updates.
- Managing metafields programmatically as part of inventory or catalog maintenance workflows.
Example: You have a product variant with a custom metafield storing warehouse location data that is no longer relevant. Using this node’s delete operation, you can remove that metafield by specifying the variant's resource ID and the metafield ID.
Properties
| Name | Meaning |
|---|---|
| ID Tài Nguyên | The numeric ID of the product variant resource from which the metafield will be deleted. |
| ID Trường Tùy Chỉnh | The numeric ID of the custom metafield to delete from the specified product variant. |
Output
The output JSON contains a single field indicating success:
{
"success": true
}
This confirms that the metafield was successfully deleted. If an error occurs, the node may output an error message instead (depending on error handling settings).
No binary data is output by this operation.
Dependencies
- Requires an active connection to the Sapo API via an API key credential configured in n8n.
- The node depends on the Sapo API base class for metafield operations.
- Proper permissions on the Sapo account to manage metafields on product variants are necessary.
Troubleshooting
Common issues:
- Invalid or missing resource ID or metafield ID will cause errors.
- Insufficient API permissions to delete metafields.
- Network or authentication failures connecting to the Sapo API.
Error messages:
- Errors typically contain descriptive messages from the Sapo API, such as "Metafield not found" or "Unauthorized".
- To resolve, verify IDs are correct, ensure API credentials have required scopes, and check network connectivity.
Handling errors:
- The node supports continuing on failure; enabling this allows workflows to proceed even if deletion fails for some items.
Links and References
- Sapo API Documentation (general reference for Sapo API)
- n8n documentation on creating custom nodes