Sankhya icon

Sankhya

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

Actions137

Entidade — Consultar Um (loadRecord) → Executar

AI-generated

Summary

Loads a single record by primary key using the Sankhya Gateway service.

Inputs

  • rootEntity (required) — Name of the Sankhya entity (e.g., Produto, Parceiro).
  • pkFields (required) — JSON object mapping primary key field names to values (e.g., {"CODPROD": "4"}).

Output shape

a single record

Returns the full record data including all fields; errors are thrown for invalid keys or authentication failures.

Examples

Example 1: Retrieve a specific product by code

Entidade: Produto; Chave Primária: {"CODPROD": "4"}

Example 2: Retrieve a partner by internal code

Entidade: Parceiro; Chave Primária: {"CODPARC": "10"}

Links

Discussion