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 Sales Opportunities and other related resources. Specifically, for the Sales Opportunity - Delete operation, it deletes a sales opportunity identified by a unique key (DocEntry). This is useful in scenarios where a sales opportunity is no longer valid or was created by mistake and needs to be removed from the system.
Practical examples include:
- Automatically cleaning up outdated or cancelled sales opportunities.
- Integrating with external systems to synchronize deletions of sales opportunities.
- Managing sales pipeline data by removing irrelevant opportunities programmatically.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (key) of the sales opportunity to delete. This is required. |
Output
The output is a JSON object representing the response from the SAP B1 Service Layer after attempting to delete the sales opportunity. It typically contains confirmation of deletion or error details if the operation failed.
If an error occurs during the request, the output JSON will contain an error field with the error message.
No binary data is output by this node.
Example output on success (simplified):
{
"someResponseField": "value"
}
Example output on error:
{
"error": "Error message describing what went wrong"
}
Dependencies
- Requires connection to SAP Business One Service Layer 3 API.
- Needs credentials including base URL, username, password, and company database name.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- The node uses HTTP methods like DELETE to interact with the API endpoints.
Troubleshooting
- Authentication errors: If login fails, check that the provided credentials (username, password, company DB) are correct and that the SAP Service Layer endpoint is reachable.
- Invalid DocEntry: If the specified DocEntry does not exist or is incorrect, the API will return an error. Verify the key before attempting deletion.
- Permission issues: Ensure the user account has sufficient permissions to delete sales opportunities.
- Network or SSL issues: The node disables strict SSL verification (
rejectUnauthorized: false). If you encounter network errors, verify connectivity and consider enabling proper SSL certificates. - API errors: The node returns error messages from the API in the output. Use these messages to diagnose issues such as resource not found or invalid requests.
Links and References
- SAP Business One Service Layer API Documentation
- SAP Business One Sales Opportunities (for conceptual understanding)
This summary focuses on the Sales Opportunity resource and its Delete operation as requested.