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 (SAP B1) Service Layer specifically for Human Resources ("Recursos Humanos"). The "Cancel" operation under the "Employees Info" resource allows users to cancel an existing employee information record identified by a unique document entry number (DocEntry). This is useful in scenarios where an employee record needs to be invalidated or marked as canceled without deleting it, such as retracting an employee's data update or reversing a previous action.

Practical examples include:

  • Canceling an employee info record due to erroneous data entry.
  • Reversing an employee status change that was applied by mistake.
  • Managing employee lifecycle events where cancellation is required before further processing.

Properties

Name Meaning
DocEntry The unique identifier (number) of the employee info record to cancel. Required for this operation.

Output

The output is a JSON object representing the response from the SAP B1 Service Layer after attempting to cancel the specified employee info record. It typically contains confirmation details or status of the cancellation operation.

If an error occurs during the request, the output JSON will contain an error field with the error message describing what went wrong.

No binary data output is produced by this node.

Dependencies

  • Requires connection to an SAP Business One Service Layer instance configured via credentials including:
    • Base URL of the SAP B1 Service Layer API.
    • Username and password for authentication.
    • Company database name.
  • The node performs a login request to obtain session cookies used for subsequent API calls.
  • The node depends on network access to the SAP B1 Service Layer endpoint.
  • No additional external services are required beyond the SAP B1 environment.

Troubleshooting

  • Authentication errors: If login fails, verify the provided username, password, company database, and base URL are correct and accessible.
  • Invalid DocEntry: Providing a non-existent or incorrect DocEntry will result in an error from the SAP B1 API indicating the record was not found.
  • Network issues: Connection timeouts or SSL errors may occur if the SAP B1 Service Layer URL is unreachable or has certificate issues. The node disables strict SSL verification (rejectUnauthorized: false) but network connectivity must still be ensured.
  • API errors: Any other errors returned by the SAP B1 API will be included in the output's error field. Review the error message for details.
  • Session cookie handling: The node extracts session cookies from the login response headers; if SAP changes cookie names or formats, the node might fail to authenticate properly.

Links and References

Discussion