Actions19
- Customer Equipment Card Actions
- Knowledge Base Solution Actions
- Service Call Actions
- Service Contract Actions
Overview
This node interacts with the SAP Business One Service Layer (version 10) to perform operations on various resources, including "Service Calls." Specifically, the "Get by Key" operation for the "Service Call" resource retrieves a single service call record identified by its unique key (DocEntry). This is useful in scenarios where you need to fetch detailed information about a specific service call, such as its status, assigned technician, or related customer data.
Practical examples include:
- Fetching a service call to display its details in a dashboard.
- Retrieving a service call before updating or closing it.
- Integrating SAP B1 service call data into other business workflows or reporting tools.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique numeric identifier of the service call to retrieve. Required for this operation. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. For the "Get by Key" operation on "Service Calls," each output JSON object contains the full details of the requested service call as returned by the SAP B1 Service Layer API.
Example structure (simplified):
{
"DocEntry": 123,
"CallStatus": "Open",
"CustomerCode": "C0001",
"Subject": "Printer not working",
"Technician": "John Doe",
"CreateDate": "2024-01-15T08:30:00Z",
...
}
If an error occurs during the request, the output JSON will contain an error field with the error message.
The node does not output binary data.
Dependencies
- Requires access to an SAP Business One Service Layer API endpoint (version 10).
- Requires credentials 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
/Loginand uses session cookies for subsequent requests. - The node performs HTTP requests with relaxed SSL verification (
rejectUnauthorized: false).
Troubleshooting
- Authentication failures: 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
DocEntrydoes not exist, the API may return an error or empty response. Confirm the key is valid. - Network issues: Ensure the SAP B1 Service Layer endpoint is reachable from the n8n instance.
- SSL errors: The node disables strict SSL verification; if your environment requires strict SSL, adjust accordingly.
- Error messages: Errors from the SAP B1 API or network issues are returned in the output's
errorfield. Review these messages to diagnose problems.
Links and References
- SAP Business One Service Layer Documentation
- SAP Business One Service Layer API Reference
- n8n HTTP Request Node Documentation (for understanding HTTP request options used internally)