Actions10
- Employees Info Actions
- Project Management Time Sheet Actions
Overview
This node integrates with the SAP B1 Service Layer 11 specifically for Human Resources (Recursos Humanos) management. It allows users to perform various operations on employee information, such as creating, updating, retrieving, deleting, canceling, or closing employee records.
A common use case is automating HR workflows by programmatically managing employee data within SAP B1. For example, when a new employee joins, this node can create their record in SAP B1 automatically using provided JSON data. Similarly, it can update existing employee details or retrieve employee lists for reporting purposes.
Properties
| Name | Meaning |
|---|---|
| Resource | The category of data to interact with; here, "Employees Info" represents employee records. |
| Operation | The action to perform on the resource. For Employees Info, options include: |
| - Cancel: Cancel an employee info | |
| - Close: Close an employee info | |
| - Create: Create an employee info | |
| - Delete: Delete an employee info | |
| - Get All: Retrieve all employees info | |
| - Get by Key: Retrieve a specific employee info by its key | |
| - Update: Update an employee info | |
| DocEntry | Numeric identifier used to specify a particular employee record (required for some operations like Get by Key, Update, Delete, Cancel, Close). |
| JSON Body | JSON content sent as the request body when creating or updating employee info. This should contain the employee data fields as expected by SAP B1. |
Output
The node outputs an array of JSON objects corresponding to each input item processed:
- On success, each output JSON contains the response from the SAP B1 Service Layer API for the requested operation. This typically includes the created, updated, retrieved, or deleted employee data.
- On failure, the output JSON contains an
errorfield with the error message describing what went wrong.
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 name
- The node authenticates by sending a login POST request to the SAP B1 Service Layer
/Loginendpoint and manages session cookies for subsequent requests. - The node uses HTTP methods (GET, POST, PATCH, DELETE) to interact with the SAP B1 API endpoints.
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: Operations requiring a DocEntry must have a valid numeric identifier; otherwise, the API will return an error.
- Malformed JSON Body: When creating or updating, ensure the JSON Body property contains valid JSON matching the expected schema for employee data in SAP B1.
- Network issues: Connection failures or SSL certificate problems 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. - API errors: The SAP B1 API may return errors for invalid operations or data. The node surfaces these errors in the output's
errorfield for debugging.