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 data management. The "Employees Info" resource allows users to perform various operations on employee records such as retrieving, creating, updating, deleting, canceling, or closing employee information.

The Get by Key operation fetches a single employee record identified uniquely by its key (DocEntry). This is useful when you need detailed information about a specific employee without retrieving the entire list of employees.

Practical examples:

  • Fetching an employee's details by their unique identifier to display in a dashboard.
  • Retrieving employee info before performing updates or validations.
  • Integrating SAP B1 employee data into other systems by querying individual records.

Properties

Name Meaning
DocEntry The unique numeric identifier (key) of the employee record to retrieve. Required input.

Output

The output is a JSON object representing the employee record fetched from SAP B1. It contains all fields and values as returned by the SAP B1 Service Layer for that particular employee.

If an error occurs (e.g., invalid DocEntry or connectivity issues), the output JSON will contain an error field with the error message.

No binary data output is produced by this operation.

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 performs a login request to obtain session cookies used for subsequent API calls.
  • The node uses HTTP requests with cookie-based session management.
  • SSL certificate verification is disabled (rejectUnauthorized: false), which might be relevant depending on your environment.

Troubleshooting

  • Common issues:

    • Invalid or missing DocEntry value will cause the API to return an error.
    • Incorrect SAP B1 credentials or company DB name will prevent successful login.
    • Network or firewall restrictions blocking access to the SAP B1 Service Layer endpoint.
    • Session expiration or invalid session cookies if the node is used in long workflows.
  • Error messages:

    • Errors are returned in the output JSON under the error key.
    • Typical errors include authentication failures, resource not found (invalid DocEntry), or malformed requests.
  • Resolutions:

    • Verify the DocEntry number exists in SAP B1.
    • Check and update SAP B1 credentials and company DB settings.
    • Ensure network connectivity to the SAP B1 Service Layer.
    • If SSL issues arise, consider configuring trusted certificates or enabling SSL verification.

Links and References

Discussion