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 manage various CRM-related resources, including Business Partners. Specifically, the Delete operation for the Business Partner resource allows users to remove a business partner record from the SAP system by specifying its unique key.
Common scenarios where this node is beneficial include:
- Automating cleanup of obsolete or incorrect business partner records.
- Integrating SAP B1 CRM data management into broader workflows that require conditional deletion of partners.
- Synchronizing external systems by removing partners no longer present or valid.
For example, a user might set up an automation that deletes a business partner when they are marked as inactive in another system, ensuring SAP stays up-to-date without manual intervention.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (key) of the business partner to delete. This is required to specify which business partner record should be removed. |
Output
The node outputs a JSON object representing the response from the SAP B1 Service Layer after attempting the deletion. Typically, this will contain confirmation of the deletion or details about any error encountered.
- The output JSON structure depends on the SAP API's DELETE response.
- If the deletion is successful, the response may be empty or contain status information.
- If there is an error, the output JSON will contain an
errorfield with the error message. - No binary data output is produced by this operation.
Example output on success:
{}
Example output on error:
{
"error": "Business partner not found"
}
Dependencies
- Requires connection to an SAP Business One Service Layer 3 instance.
- Needs credentials including base URL, username, password, and company database name.
- The node authenticates via a login POST request to obtain session cookies used in subsequent requests.
- The SAP Service Layer API must be accessible from the n8n environment.
Troubleshooting
- Authentication errors: If login fails, verify the provided credentials and network connectivity to the SAP Service Layer.
- Invalid DocEntry / Key: Ensure the key corresponds to an existing business partner; otherwise, the API will return an error indicating the partner was not found.
- Permission issues: The authenticated user must have rights to delete business partners in SAP B1.
- Network or SSL errors: The node disables strict SSL verification (
rejectUnauthorized: false), but network issues or firewall restrictions can still block requests. - Error messages: Errors returned from SAP are captured and output in the
errorfield. Review these messages to adjust inputs or permissions accordingly.