TOTVS RM icon

TOTVS RM

Interact with TOTVS ERP Linha RM — DataServer REST, native REST APIs, and automatic JWT authentication

Employees (HR) → Get by Badge

AI-generated

Summary

Fetch employee records from the TOTVS RM FopFuncData DataServer REST API using a badge number or SQL filter.

Inputs

  • chapa — Badge number (CHAPA) of the employee.
  • filter — Standard RM SQL filter to query records (e.g. CHAPA='000001').
  • select — Comma-separated list of specific fields to return.
  • codColigada — Company code override. Set to 0 to use the company code from credentials.
  • context — Additional RM context string to override default credential settings.

Output shape

a single record or a list of items

Returns the parsed JSON record(s) returned by the FopFuncData DataServer.

Examples

Example 1: Fetch employee record by badge filter

Set SQL Filter to CHAPA='000001'

Example 2: Retrieve specific fields for an employee

Set SQL Filter to CHAPA='000001' and Select Fields to CHAPA,NOME,CODSECAO

Links

Discussion