Actions10
- Employees Info Actions
- Project Management Time Sheet Actions
Overview
This node interacts with the SAP Business One Service Layer specifically for Human Resources (Recursos Humanos). It allows users to perform various operations on employee information records, such as retrieving, creating, updating, deleting, canceling, and closing employee info entries.
A common use case is automating HR workflows by integrating SAP B1 employee data management into an n8n workflow. For example, you could automatically close an employee info record when a contract ends or update employee details based on external form submissions.
The Close operation specifically marks an employee info record as closed in SAP B1, which might be used to finalize or archive employee data after certain processes are complete.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the employee info record to operate on. Required field. |
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 call.- For the Close operation, this will typically be a confirmation object indicating the success or failure of the close action on the specified employee info record.
- If an error occurs during the request, the output JSON will contain an
errorfield with the error message.
No binary data output is produced by this node.
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 obtain session cookies, which it uses for subsequent requests.
- 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: Providing a non-existent or incorrect DocEntry number will result in an error from the API. Ensure the DocEntry corresponds to a valid employee info record.
- 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 still be ensured. - API errors: The node returns error messages from the SAP B1 API in the output JSON under the
errorkey. Review these messages to understand issues like permission problems or invalid operations.