SAP B1 Service Layer 11 - Recursos Humanos icon

SAP B1 Service Layer 11 - Recursos Humanos

Interact with SAP B1 Service Layer 11 - Recursos Humanos

Actions10

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 updating existing employee data. The "Update" operation modifies an employee record identified by a unique key (DocEntry) with new data provided in JSON format.

Common scenarios include:

  • Automating updates to employee records when HR data changes.
  • Integrating SAP B1 employee info updates into workflows triggered by external systems.
  • Batch updating multiple employee records programmatically.

For example, you might use this node to update an employee's contact details or job title by specifying their DocEntry and providing the updated fields in the JSON body.

Properties

Name Meaning
DocEntry The unique identifier of the employee record to update. Required for update operations.
JSON Body The JSON content representing the fields and values to update in the employee record.

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 after performing the update operation. This typically includes the updated employee record or confirmation of success.
  • In case of errors, the json field contains an error property with the error message.

No binary data is output by this node.

Dependencies

  • Requires connection credentials to the SAP Business One Service Layer API, including base URL, username, password, and company database name.
  • The node authenticates via a login POST request to obtain session cookies used in subsequent requests.
  • The environment must allow HTTPS requests to the SAP B1 Service Layer endpoint.

Troubleshooting

  • Authentication failures: If login fails, verify that the SAP B1 credentials and company database are correct and that the service layer is accessible.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will result in errors; ensure the identifier matches an existing employee record.
  • Malformed JSON Body: Ensure the JSON body is valid and conforms to the expected schema for employee records in SAP B1.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP B1 service is unreachable or has invalid certificates. The node disables strict SSL verification (rejectUnauthorized: false), but network connectivity must be stable.
  • Error messages returned in the output's error field should be reviewed to identify specific issues, such as permission problems or invalid operations.

Links and References

Discussion