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 perform various operations on CRM resources, including Sales Opportunities. Specifically, for the "Sales Opportunity" resource and the "Get by Key" operation, it retrieves detailed information about a single sales opportunity identified by a unique key (DocEntry).
Common scenarios where this node is beneficial include:
- Fetching detailed data of a specific sales opportunity for reporting or processing.
- Integrating SAP B1 sales opportunity data into other systems or workflows.
- Automating follow-up actions based on the status or details of a particular sales opportunity.
For example, you might use this node to get the current status and details of a sales opportunity before deciding whether to update it or trigger notifications.
Properties
| Name | Meaning |
|---|---|
| DocEntry / Key | The unique identifier (key) of the sales opportunity to retrieve. This is required. |
Output
The node outputs an array of items, each containing a json field with the response from the SAP B1 Service Layer API.
- For the "Get by Key" operation on Sales Opportunity, the
jsonoutput contains the full JSON representation of the requested sales opportunity as returned by the SAP B1 API. - If an error occurs during the request, the output's
jsonwill contain anerrorfield with the error message. - The node does not output binary data.
Example output structure:
{
"json": {
"DocEntry": 123,
"Name": "Opportunity Name",
"Status": "Open",
"CustomerCode": "C0001",
// ... other sales opportunity fields ...
}
}
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 POST request to the
/Loginendpoint and uses cookies for session management. - No additional external dependencies beyond the SAP B1 Service Layer API.
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: If the specified key does not exist, the API may return an error or empty result. Ensure the DocEntry value is valid and exists in SAP B1.
- Network issues: Connection timeouts or SSL errors can occur if the SAP B1 server is unreachable or has invalid certificates. The node disables strict SSL verification (
rejectUnauthorized: false) but network connectivity must be ensured. - API errors: Any API error responses are captured and returned in the output under the
errorfield. Review these messages to diagnose issues such as permission problems or malformed requests.
Links and References
This summary focuses on the "Sales Opportunity" resource and the "Get by Key" operation as requested.