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 within SAP B1, such as creating, retrieving, updating, deleting, canceling, or closing employee info entries.
For the Delete operation under the Employees Info resource, the node deletes a specific employee information record identified by its unique DocEntry number. This is useful in scenarios where an employee record needs to be removed from the system, for example, when an employee leaves the company and their data must be purged.
Practical example:
- A user wants to automate the removal of terminated employees' records from SAP B1. By providing the
DocEntryof the employee info, this node will send a delete request to SAP B1 Service Layer to remove that record.
Properties
| Name | Meaning |
|---|---|
| DocEntry | The unique identifier (number) of the employee info record to delete. Required for Delete operation. |
Output
The output is an array of JSON objects corresponding to each input item processed. For the Delete operation, the JSON output contains the response from the SAP B1 Service Layer after attempting to delete the specified employee info record. If successful, it typically returns confirmation details; if an error occurs, the output JSON includes an error field with the error message.
Example output JSON structure on success:
{
"someResponseField": "value",
...
}
On error:
{
"error": "Error message describing what went wrong"
}
No binary data output is produced by this node.
Dependencies
- Requires connection to SAP Business One Service Layer API.
- Needs credentials including base URL, username, password, and company database name.
- The node authenticates by sending a login POST request to SAP B1 Service Layer and manages session cookies for subsequent requests.
- The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.
Troubleshooting
- Authentication errors: If login fails, check that the provided credentials (username, password, company DB) are correct and that the SAP B1 Service Layer is accessible.
- Invalid DocEntry: If the
DocEntrydoes not exist or is incorrect, the delete operation will fail. Verify the identifier before running the node. - Network issues: Ensure the network allows outbound connections to the SAP B1 Service Layer URL and that SSL certificates are valid or properly handled (the node disables strict SSL verification).
- Error messages: The node returns error messages in the output JSON under the
errorkey. These messages come directly from the SAP B1 API or from request failures and should guide troubleshooting.
Links and References
- SAP Business One Service Layer Documentation
- SAP B1 Service Layer API Reference (example link, verify actual version)
- n8n documentation on HTTP Request Node for understanding underlying HTTP calls