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
Trang → Xóa Hàng Loạt
AI-generatedOverview
This node manages custom metafields on various resources within the Sapo platform, specifically supporting operations like creating, retrieving, updating, deleting, counting, validating, and bulk deleting metafields. The "Xóa Hàng Loạt" (Bulk Delete) operation allows users to delete multiple metafields at once based on filtering criteria.
Common scenarios include cleaning up or removing multiple custom fields associated with a specific resource (e.g., pages, products, orders) in bulk, which is useful for maintaining data hygiene or resetting configurations.
For example, if you want to remove all metafields related to a certain namespace or key from a particular page resource, this operation enables you to specify those filters and delete them all in one go.
Properties
| Name | Meaning |
|---|---|
| ID Tài Nguyên | The numeric ID of the resource (e.g., a page) whose metafields you want to bulk delete. |
| Thông Tin Bổ Sung | Additional optional filters to narrow down which metafields to delete. Includes: |
| - Namespace: Filter metafields by their namespace string. | |
| - Key: Filter metafields by their key string. | |
| - Tạo Sau (Created After): Filter metafields created after this date/time. | |
| - Tạo Trước (Created Before): Filter metafields created before this date/time. |
Output
The output JSON contains the result of the bulk delete operation. It typically includes information about the success status or details of the deletion process. For this operation, the output will be an object indicating whether the bulk deletion was successful or may contain error information if it failed.
Example output structure:
{
"success": true
}
If an error occurs and the node is set to continue on failure, the output will contain an error message instead.
Dependencies
- Requires an API authentication credential to connect to the Sapo platform.
- Depends on the internal
SapoApiBaseclass to perform metafield operations via the Sapo API. - No additional external services are required beyond the configured Sapo API credentials.
Troubleshooting
Common issues:
- Providing an invalid or non-existent resource ID will cause the operation to fail.
- Incorrect filter values in "Thông Tin Bổ Sung" may result in no metafields being matched or deleted.
- Insufficient permissions or invalid API credentials can lead to authorization errors.
Error messages:
- Errors returned from the Sapo API will be surfaced as node errors unless "Continue On Fail" is enabled.
- Typical error messages might include "Resource not found," "Invalid filter parameters," or "Unauthorized."
Resolution tips:
- Verify that the resource ID corresponds to an existing resource in your Sapo account.
- Double-check filter fields for correct spelling and valid values.
- Ensure the API credential used has sufficient permissions to delete metafields.
Links and References
- Sapo API Documentation (general reference for metafield management)
- n8n documentation on Custom Nodes for further customization guidance