Overview
This node integrates with the SAP B1 Service Layer 12 specifically for managing projects ("Gestion de Proyectos"). It allows users to perform various operations on project management entities within SAP Business One, such as creating, updating, deleting, retrieving, and canceling projects.
Common scenarios where this node is beneficial include automating project lifecycle management in SAP B1, synchronizing project data between SAP and other systems, or building custom workflows that require interaction with SAP project data.
For example, a user can automate the creation of new projects by providing the necessary project details in JSON format, or retrieve all existing projects to analyze or report on them externally.
Properties
| Name | Meaning |
|---|---|
| Operation | The action to perform on the project resource. Options: Create, Update, Delete, Get All, Get by Key, Cancel Project |
| DocEntry | The unique identifier (number) of the project. Required for operations targeting a specific project (Get by Key, Update, Delete, Cancel Project) |
| JSON Body | The content sent as the request body in JSON format. Used when creating or updating a project. |
Output
The node outputs an array of JSON objects corresponding to each input item processed. Each output item contains:
json: The response from the SAP B1 Service Layer API for the requested operation.- For retrieval operations (
Get All,Get by Key), this includes project data. - For create/update operations, it includes confirmation or updated project details.
- For delete or cancel operations, it typically includes status information.
- For retrieval operations (
- In case of errors, the
jsonfield contains anerrorproperty with the error message.
No binary data is produced by this node.
Dependencies
- Requires connection to an SAP B1 Service Layer instance.
- Needs credentials including base URL, username, password, and company database name.
- The node authenticates by sending a login request to obtain session cookies used in subsequent requests.
- The node uses HTTP methods (GET, POST, PATCH, DELETE) to interact with the SAP B1 API endpoints.
Troubleshooting
- Authentication failures: If login credentials are incorrect or the SAP B1 service is unreachable, the node will fail at the login step. Verify credentials and network connectivity.
- Invalid DocEntry: Operations requiring a
DocEntrymay fail if the provided ID does not exist. Ensure the correct project identifier is used. - Malformed JSON Body: For create and update operations, ensure the JSON body is correctly structured according to SAP B1's expected schema.
- Permission issues: The authenticated user must have sufficient permissions to perform the requested operations.
- API endpoint errors: Unexpected responses or errors from the SAP B1 API will be returned in the output's
errorfield. Review the error message for clues.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (example link; verify actual version)