Sankhya icon

Sankhya

Integração completa com o ERP Sankhya — REST v1/v2 e Gateway

Actions137

Pessoal — RH (REST) → Buscar Funcionário × Empresa

AI-generated

Summary

Fetches detailed information about a specific employee's association with a specified company in the Sankhya ERP system using their respective IDs.

Inputs

  • ID (required) — The unique identifier of the employee to retrieve.
  • Código da Empresa (required) — The unique code of the company to filter the employee-company relationship.

Output shape

a JSON object with the employee-company relationship details as returned by the Sankhya ERP REST v1 API endpoint.

The operation sends a GET request to the REST endpoint /v1/pessoal/funcionarios/{id}/empresa/{codigoEmpresaPessoal}. It requires valid Sankhya API credentials and returns the employee's detailed info for the given company. Errors related to authentication or application logic are thrown as SankhyaTechnicalError or SankhyaBusinessError respectively.

Examples

Example 1: Retrieve a specific employee's record for a given company to integrate HR workflows or automate management tasks in n8n.

Set resource to 'Pessoal — RH (REST)', operation to 'Buscar Funcionário × Empresa', provide required 'ID' for employee, and 'Código da Empresa' to specify company context.

Links

Discussion