Actions29
- Activitie Actions
- Business Partner Actions
- Order Actions
- Quotation Actions
- Sales Opportunity Actions
Overview
This node integrates with the SAP B1 Service Layer 3 CRM system, allowing users to perform various operations on CRM resources such as Business Partners, Activities, Orders, Quotations, and Sales Opportunities. Specifically, for the Business Partner - Create operation, it enables creating a new business partner record in the SAP B1 system by sending a JSON payload describing the business partner details.
Common scenarios where this node is beneficial include automating customer or vendor creation workflows, syncing external CRM data into SAP B1, or integrating SAP B1 business partner management into broader automation pipelines.
For example, you might use this node to automatically create a new business partner in SAP B1 whenever a new lead is qualified in your marketing platform, by passing the lead's information as JSON to this node.
Properties
| Name | Meaning |
|---|---|
| JSON Body | The JSON content sent as the request body when creating (or updating) a business partner. This should contain all necessary fields according to SAP B1 API specifications for a business partner. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. For the "Create" operation on Business Partner, the output JSON contains the response from the SAP B1 Service Layer API after attempting to create the business partner. This typically includes details of the created entity or error information if the creation failed.
No binary data output is produced by this node.
Example output JSON snippet:
{
"DocEntry": 123,
"CardCode": "C0001",
"CardName": "New Business Partner",
...
}
Or in case of error:
{
"error": "Error message describing what went wrong"
}
Dependencies
- Requires connection credentials to the SAP B1 Service Layer API, including:
- Base URL of the SAP B1 Service Layer.
- Username and password for authentication.
- Company database identifier.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The SAP B1 Service Layer must be accessible from the n8n environment.
- No additional external libraries are required beyond standard HTTP requests.
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 reachable.
- Invalid JSON Body: Ensure the JSON body provided matches the expected schema for a business partner in SAP B1. Invalid or incomplete data will cause API errors.
- Network issues: Connection timeouts or SSL errors may occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (
rejectUnauthorized: false), but network connectivity must still be ensured. - API errors: The node returns error messages from the SAP B1 API in the output JSON under the
errorkey. Review these messages to adjust the request accordingly.