Sapo Trường Tùy Chỉnh icon

Sapo Trường Tùy Chỉnh

Quản lý trường tùy chỉnh trên Sapo

Sản Phẩm → Xóa

AI-generated

Overview

This node manages custom metafields on various resources within the Sapo platform, such as products, orders, customers, and more. Specifically, for the "Sản Phẩm" (Products) resource with the "Xóa" (Delete) operation, it deletes a specified custom metafield from a product by its ID.

Common scenarios where this node is useful include:

  • Cleaning up or removing obsolete custom metadata fields from products.
  • Automating product data maintenance workflows by programmatically deleting unwanted metafields.
  • Integrating with other systems to synchronize product metadata by removing outdated entries.

Example: Automatically delete a custom metafield that tracks temporary inventory locations once the product is moved to a new warehouse.

Properties

Name Meaning
ID Tài Nguyên The numeric ID of the product 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 resource.

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 output may contain an error field with the error message if the node is configured to continue on failure.

No binary data is produced by this operation.

Dependencies

  • Requires an active connection to the Sapo API via an API authentication credential.
  • The node depends on the Sapo API base class to perform metafield operations.
  • Proper permissions are needed on the Sapo account to delete metafields on products.

Troubleshooting

  • Common issues:

    • Providing an invalid or non-existent product ID or metafield ID will cause errors.
    • Insufficient API permissions can result in authorization errors.
    • Network connectivity problems may cause request failures.
  • Error messages:

    • "Metafield not found": Check that the metafield ID exists for the given product.
    • "Unauthorized" or similar: Verify API credentials and permissions.
    • "Invalid resource ID": Confirm the product ID is correct and accessible.
  • To resolve errors, ensure all IDs are valid, credentials are correctly configured, and the Sapo API service is reachable.

Links and References

Discussion