SAP B1 Service Layer 3 - CRM icon

SAP B1 Service Layer 3 - CRM

Interact with SAP B1 Service Layer 3 - CRM

Overview

This node integrates with the SAP B1 Service Layer 3 CRM system, allowing users to perform various operations on CRM resources such as Quotations, Business Partners, Activities, Sales Opportunities, and Orders. Specifically, for the Quotation - Create operation, it enables creating a new quotation in the SAP B1 system by sending a JSON payload representing the quotation details.

Common scenarios where this node is beneficial include automating the creation of sales quotations based on external triggers or workflows, integrating SAP B1 CRM with other systems (e.g., e-commerce platforms, CRMs), and streamlining sales processes by programmatically managing quotations.

For example, a user could automate generating a quotation when a customer submits a request on a website, passing all necessary data in JSON format to create the quotation directly in SAP B1.

Properties

Name Meaning
JSON Body The JSON content sent as the body of the HTTP request to create or update the resource. For the Quotation Create operation, this should contain the quotation details formatted according to SAP B1 API requirements.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:

  • json: The full JSON response returned from the SAP B1 Service Layer API after performing the requested operation. For a successful "Create Quotation" operation, this will typically include the created quotation's details such as its unique identifier and any metadata returned by SAP B1.

If an error occurs during the request, the output JSON will contain an error field with the error message.

The node does not output binary data.

Dependencies

  • Requires access to an SAP B1 Service Layer 3 instance.
  • Requires credentials including:
    • Base URL of the SAP B1 Service Layer API.
    • Username and password for authentication.
    • Company database name.
  • The node authenticates by sending a login POST request to /Login endpoint and uses cookies (B1SESSION and optionally ROUTEID) for subsequent requests.
  • The node sends HTTP requests with JSON bodies and expects JSON responses.
  • No additional external dependencies beyond the configured SAP B1 API credentials.

Troubleshooting

  • Authentication errors: If login fails, verify that the base URL, username, password, and company database are correct and that the SAP B1 Service Layer is accessible.
  • Invalid JSON Body: Ensure the JSON provided in the "JSON Body" property matches the expected schema for creating a quotation in SAP B1. Malformed or incomplete JSON may cause API errors.
  • Network issues: Connection failures or SSL certificate problems can occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must be ensured.
  • API errors: The SAP B1 API may return errors for invalid operations, missing required fields, or business logic violations. The node returns these errors in the output JSON under the error key.
  • Cookie handling: The node relies on cookies set by the login response. If cookies are not properly received or expire, subsequent requests will fail. Re-authenticate or check session management on the SAP B1 server.

Links and References

Discussion