Actions29
- Activitie Actions
- Business Partner Actions
- Order Actions
- Quotation Actions
- Sales Opportunity Actions
Overview
This node integrates with the SAP Business One Service Layer 3 CRM API to perform operations on Sales Opportunities. Specifically, the "Update" operation allows users to modify an existing sales opportunity by specifying its unique identifier and providing updated data in JSON format.
Common scenarios for this node include:
- Updating details of a sales opportunity such as status, expected close date, or customer information.
- Automating updates to sales opportunities based on external triggers or workflows.
- Synchronizing sales opportunity data between SAP B1 and other systems.
For example, a user might update the probability percentage or add notes to a sales opportunity after a client meeting.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (DocEntry) of the sales opportunity to update. |
| JSON Body | A JSON object containing the fields and values to update on the sales opportunity record. |
Output
The node outputs the response from the SAP B1 Service Layer API as JSON. This typically includes the updated sales opportunity data reflecting the changes made.
- The output is structured as a JSON object representing the sales opportunity resource after the update.
- If an error occurs, the output JSON contains an
errorfield with the error message. - No binary data 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 authenticates by sending a login request to obtain session cookies used in subsequent requests.
- The node uses HTTP PATCH method to update the sales opportunity resource at the endpoint
/SalesOpportunities({DocEntry}).
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 DocEntry: Ensure the provided DocEntry corresponds to an existing sales opportunity; otherwise, the API will return a not found error.
- Malformed JSON Body: The JSON body must be valid and conform to the SAP B1 Sales Opportunity schema; invalid fields or types may cause API errors.
- Permission issues: The authenticated user must have sufficient permissions to update sales opportunities.
- Network issues: Check connectivity to the SAP B1 Service Layer endpoint and firewall settings.