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 perform various operations on CRM resources such as Orders, Quotations, Business Partners, Activities, and Sales Opportunities. Specifically for the Order - Cancel operation, it sends a request to cancel an existing order identified by its unique key.
Typical use cases include automating order management workflows where orders need to be programmatically canceled based on business logic or external triggers. For example, if an order is no longer valid due to stock issues or customer cancellation, this node can be used to update the SAP system accordingly without manual intervention.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (key) of the order to cancel. This is required to specify which order to target for cancellation. |
Output
The node outputs JSON data representing the response from the SAP B1 Service Layer after attempting to cancel the order. The structure typically contains confirmation details or error information returned by the API.
If the cancellation is successful, the output JSON will contain the relevant status or updated order information. If there is an error, the output JSON will include an error field with the error message.
No binary data output is produced by this operation.
Dependencies
- Requires connection credentials to the SAP Business One Service Layer API, including:
- Base URL of the SAP Service Layer.
- Username and password for authentication.
- Company database name.
- The node performs a login request to obtain session cookies before making the cancellation request.
- The node uses HTTP requests with cookie-based session management.
- No additional external dependencies beyond the SAP Service Layer API and proper credential configuration in n8n.
Troubleshooting
Common Issues:
- Invalid or missing
DocEntry / Key: The node requires a valid order key to identify which order to cancel. Ensure this value is correct and corresponds to an existing order. - Authentication failures: Incorrect credentials or company database name will cause login failure, preventing any further API calls.
- Network or SSL errors: Since the node disables strict SSL verification (
rejectUnauthorized: false), network issues or incorrect base URLs may still cause failures. - API endpoint errors: If the order cannot be canceled due to business rules or order state, the API will return an error message.
- Invalid or missing
Error Messages:
- Errors are returned in the output JSON under an
errorproperty. - Common messages might include "Order not found", "Invalid operation", or authentication errors.
- To resolve, verify credentials, ensure the order exists and is in a cancellable state, and check network connectivity.
- Errors are returned in the output JSON under an
Links and References
- SAP Business One Service Layer API Documentation
- SAP B1 Service Layer Authentication Guide
- n8n HTTP Request Node Documentation (for understanding underlying request mechanics)