SAP B1 Service Layer 3 - CRM icon

SAP B1 Service Layer 3 - CRM

Interact with SAP B1 Service Layer 3 - CRM

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 resource and the Reopen operation, it sends a POST request to reopen a previously closed or canceled order in SAP B1.

Typical use cases include automating order management workflows where orders need to be reopened after being closed or canceled, for example, if a customer changes their mind or an error was made in closing the order. This node helps integrate SAP B1 order status management into broader automation pipelines.

Example: Automatically reopen an order in SAP B1 when a certain condition is met in another system, such as a CRM or e-commerce platform.

Properties

Name Meaning
DocEntry / Key The unique identifier (DocEntry) of the order to be reopened. This is required to specify which order to target.

Output

  • The node outputs JSON data representing the response from the SAP B1 Service Layer API.
  • For the Reopen operation on Orders, the output JSON typically contains confirmation details or the updated order object after reopening.
  • If an error occurs, the output JSON will contain an error field with the error message.
  • 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
    • Password
    • Company database name
  • The node authenticates by sending a login POST request to /Login endpoint and uses session cookies for subsequent requests.
  • The node depends on n8n's HTTP request helper to communicate with the SAP B1 API.

Troubleshooting

  • Authentication errors: If login fails, check that the provided username, password, company database, and base URL are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: If the specified order key does not exist or is invalid, the API will return an error. Verify the DocEntry value corresponds to an existing order.
  • Permission issues: Ensure the user account has sufficient permissions to reopen orders in SAP B1.
  • Network issues: Connection failures may occur if the SAP B1 server is unreachable or SSL certificates are invalid. The node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must still be ensured.
  • Error messages: The node returns error messages from the SAP B1 API in the output JSON under the error field. Use these messages to diagnose issues.

Links and References

Discussion