Actions19
- Customer Equipment Card Actions
- Knowledge Base Solution Actions
- Service Call Actions
- Service Contract Actions
Overview
This node integrates with the SAP B1 Service Layer 10 API to manage various resources, including Service Contracts. Specifically, for the Service Contract - Create operation, it allows users to create new service contract records in their SAP Business One system by sending a JSON payload representing the contract details.
Common scenarios where this node is beneficial include automating the creation of service contracts based on external triggers or workflows, such as when a new customer signs up or when a sales order requires an associated service contract. For example, after receiving customer data from a CRM system, you can use this node to automatically generate a corresponding service contract in SAP B1 without manual entry.
Properties
| Name | Meaning |
|---|---|
| JSON Body | Content to send as request body. This should be a JSON object representing the service contract fields and values to create. |
Output
The node outputs an array of JSON objects, each corresponding to an input item processed. Each output item contains:
json: The response from the SAP B1 Service Layer API for the create operation. This typically includes the created service contract's details or confirmation data returned by SAP.pairedItem: Metadata linking the output to the original input item index.
No binary data is produced by this node.
Dependencies
- Requires connection credentials to the SAP B1 Service Layer API, including:
- Base URL of the SAP B1 Service Layer endpoint.
- Username and password for authentication.
- Company database name.
- The node performs a login POST request to obtain session cookies used for subsequent requests.
- The node uses HTTP requests with cookie-based session management.
- No additional external dependencies beyond the SAP B1 Service Layer API and valid credentials.
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 JSON Body: Ensure the JSON Body property contains valid JSON matching the expected schema for a service contract in SAP B1. Malformed or incomplete JSON will cause API errors.
- Permission issues: The user account must have permissions to create service contracts in SAP B1.
- Network or SSL issues: The node disables strict SSL verification (
rejectUnauthorized: false), but network connectivity and firewall settings must allow access to the SAP B1 Service Layer. - Error messages: Errors returned from the SAP API are captured and output in the
json.errorfield. Review these messages for specific API error codes or descriptions to guide fixes.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (consult for exact JSON schema and endpoints)