Actions34
- Inventory Counting Actions
- Inventory Gen Entrie Actions
- Inventory Gen Exit Actions
- Inventory Posting Actions
- Item Actions
- Stock Transfer Actions
Overview
This node integrates with the SAP B1 Service Layer 7 to manage inventory-related data, specifically focusing on the "Item" resource for this context. It allows users to perform various operations such as creating, updating, deleting, retrieving, and canceling items in the SAP Business One system.
A common use case is automating inventory item management within SAP B1 from workflows in n8n, such as adding new products, updating existing product details, or fetching item information for reporting or synchronization purposes.
For example, using the "Create" operation, a user can send a JSON payload describing a new inventory item to be added to SAP B1, streamlining the onboarding of new products without manual entry into the SAP interface.
Properties
Name | Meaning |
---|---|
JSON Body | The JSON content sent as the request body when creating or updating an item. This should contain the item details formatted according to SAP B1's API requirements. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output object contains:
json
: The response from the SAP B1 Service Layer API call.- For successful operations, this includes the created or updated item data or confirmation of deletion/cancellation.
- In case of errors, it contains an
error
field with the error message.
No binary data output 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.
- Username and password for authentication.
- Company database identifier.
- The node performs a login request to obtain session cookies used for subsequent API calls.
- 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 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 JSON Body: Ensure the JSON Body property contains valid JSON matching SAP B1's expected schema for the item resource; otherwise, the API may return validation errors.
- Resource or Operation mismatch: Using unsupported operations or resources will result in errors. Confirm that the selected operation matches the resource "Item".
- Network issues: Connection timeouts or SSL errors may 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. - Error messages returned from SAP B1 API are included in the output under the
error
key. Review these messages for specific API-level issues.