Actions29
- Activitie Actions
- Business Partner Actions
- Order Actions
- Quotation Actions
- Sales Opportunity Actions
Overview
This node interacts with the SAP Business One Service Layer 3 CRM API to manage Orders and other CRM-related resources. Specifically, for the "Order" resource with the "Delete" operation, it deletes an existing order identified by a unique key (DocEntry). This is useful in scenarios where orders need to be programmatically removed from the SAP B1 system, such as canceling erroneous or duplicate orders.
Practical examples include:
- Automatically deleting orders that fail validation in an external system.
- Cleaning up test or temporary orders created during integration testing.
- Removing orders based on business logic triggered by other workflows.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (key) of the order to delete. This is required to specify which order to remove. |
Output
The node outputs a JSON object representing the response from the SAP B1 Service Layer after attempting to delete the order. Typically, this will contain confirmation of deletion or error details if the operation failed.
If an error occurs, the output JSON will contain an error field with the error message describing what went wrong.
No binary data output is produced by this node.
Dependencies
- Requires connection credentials to the SAP Business One Service Layer API, including:
- Base URL of the SAP B1 Service Layer.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The node uses HTTP methods like DELETE to interact with the SAP B1 REST endpoints.
Troubleshooting
- Authentication errors: If login fails, verify the provided username, password, company database, and base URL are correct and accessible.
- Invalid DocEntry: Deletion will fail if the specified DocEntry does not exist or is incorrect. Ensure the key corresponds to an existing order.
- Permission issues: The user must have sufficient permissions in SAP B1 to delete orders.
- Network/SSL issues: The node disables SSL certificate verification (
rejectUnauthorized: false), but network connectivity problems can still cause failures. - Error messages: The node returns error messages from the SAP B1 API in the output JSON under the
errorfield. Use these messages to diagnose issues.
Links and References
- SAP Business One Service Layer API Documentation
- SAP Business One Orders Endpoint Reference (example link; consult official docs for exact version)