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 Business One Service Layer 3 CRM API to perform operations on various CRM resources, including Business Partners. Specifically, for the Business Partner - Update operation, it allows updating an existing business partner's data by sending a PATCH request to the SAP B1 Service Layer.

Typical use cases include:

  • Modifying details of a business partner such as contact information, address, or custom fields.
  • Automating updates to business partner records based on external triggers or workflows.
  • Synchronizing business partner data from other systems into SAP B1.

For example, you might update a business partner’s phone number or billing address after receiving updated customer info from a CRM system.

Properties

Name Meaning
DocEntry / Key The unique identifier (DocEntry) of the business partner to update.
JSON Body The JSON object containing the fields and values to update on the business partner record.

The DocEntry / Key is required to specify which business partner to update. The JSON Body should contain the partial or full set of properties to modify, formatted as valid JSON.

Output

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

  • json: The response from the SAP B1 Service Layer API after the update operation. This typically includes the updated business partner data or confirmation of success.
  • In case of errors, the json field contains an error property 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 and password for authentication.
    • Company database name.
  • The node performs a login POST request to obtain session cookies used in subsequent requests.
  • The node uses HTTP methods (PATCH for update) against the SAP B1 REST endpoints.
  • No additional external libraries beyond standard HTTP request helpers are needed.

Troubleshooting

  • Authentication failures: If login fails, check that the base URL, username, password, and company DB are correct and that the SAP B1 Service Layer is accessible.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will cause the update to fail. Verify the DocEntry corresponds to an existing business partner.
  • Malformed JSON Body: Ensure the JSON body is valid JSON and conforms to the SAP B1 API schema for business partners.
  • Permission issues: The user must have sufficient permissions in SAP B1 to update business partner records.
  • Network/SSL errors: The node disables SSL verification (rejectUnauthorized: false) but network issues or firewall restrictions can still block requests.

Common error messages returned from the API will be included in the output under the error key, helping diagnose issues.

Links and References

Discussion