Actions41
- ── Framework ── Actions
- DataServer (Generic) Actions
- Employees (HR) Actions
- Payroll Actions
- Invoice (Stock) Actions
- Stock Movement Actions
- Accounts Payable/Receivable Actions
- Accounting Entry Actions
- Customers / Suppliers Actions
- Users Actions
- Companies Actions
- Enrollment (Education) Actions
Employees (HR) → Update Employee
AI-generatedSummary
Update an existing employee record in the TOTVS RM Employees (HR) DataServer by specifying the badge number and providing the update details as a JSON payload.
Inputs
- Badge Number (CHAPA) (required) — The employee's badge number to identify which record to update.
- Company Code Override — Optional numeric code to override the default company code from the credential; leave 0 to use the credential's company code.
- Request Body (JSON) (required) — A JSON object containing the fields and values to update for the employee; required fields depend on the DataServer's schema.
- RM Context — Optional contextual string for RM (e.g., system, user, branch information); if empty, defaults from credential are used.
Output shape
a list of JSON objects
Returns the JSON response from TOTVS RM containing the updated employee information or operation result. Multiple items can be processed in batch, returning one output per input with pairing. Errors either cause failure or a JSON error object if 'Continue On Fail' is enabled.
Examples
Example 1: Update an employee with badge number 000001 to change their department
Set 'Badge Number (CHAPA)' to '000001'; set 'Request Body (JSON)' to the JSON with updated fields; optionally set 'Company Code Override' and 'RM Context'.
