HR events
When an employee, attendance, leave or shift record changes — and which extra fields the workflow can use.
On this page
-
- Employee added
- Employee updated
- Employee activated
- Employee moved to another department
- Employee manager changed
- Probation ending soon
- Employee contract ending soon
- Work anniversary or birthday
- Employee exit confirmed
- Employee document expiring
- Clocked in
- Attendance updated
- Clocked out
- Late arrival
- Missed clock-in
- Missed clock-out
- Left early
- Attendance correction approved
- Clocked in outside work location
- Shift assigned
- Employee shift updated
- Shift changed
- Shift starting soon
- Shift change requested
- Leave requested
- Leave updated
- Leave approved
- Leave rejected
- Leave cancelled
- Leave starting soon
- Leave balance low
Data on every event
Every event carries the record before and after the change. In the builder, read current values from trigger.data.after. An “only if” filter can use the record, branch, owner, and which fields changed.
| Field | What it is |
|---|---|
Event idid | So the same event is not run twice. |
Typetype | The event key, for example a leave request. |
Subjectsubject | The record this event is about. |
Timetime | When it happened. |
Companytenantid | Your company. |
Record typedata.entity_type | For example employee or invoice. |
Recorddata.entity_id | The record that changed. |
Beforedata.before | Values before the change. |
Afterdata.after | Values after the change. |
Changed fieldsdata.changed_fields | Which fields differ. |
Detailsdata.details | Extra fields for this event only (tables below). |
Who is this lesson for?
Anyone who builds a workflow that should start when something happens in this area.
How to read this list
These events start a workflow when something happens in HR. Map values from the record after the change, or from the extra fields below.
A line that says the event is not in Open builder yet still appears here so you can plan. It will not show in the trigger list until it is available.
Events in this list
Employee added
hrm.employee.created.v1
Fires when: Employee added.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Join datejoin_date | Yes | A date. |
Employee updated
hrm.employee.updated.v1
Fires when employee details are updated.
No extra fields. Use the record after the change.
Employee activated
hrm.employee.activated.v1
Fires when: Employee activated.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Effective ateffective_at | Yes | A date and time. |
Employee moved to another department
hrm.employee.department_changed.v1
Fires when: Employee moved to another department.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Old departmentold_department_id | No | The record. |
New departmentnew_department_id | Yes | The record. |
Effective oneffective_on | Yes | A date. |
Employee manager changed
hrm.employee.manager_changed.v1
Fires when: Employee manager changed.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Old managerold_manager_id | No | The record. |
New managernew_manager_id | Yes | The record. |
Probation ending soon
hrm.employee.probation_due.v1
Fires when: Probation ending soon.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Due ondue_on | Yes | A date. |
Offsetoffset | Yes | Text or a value from the record. |
Employee contract ending soon
hrm.employee.contract_due.v1
Fires when: Employee contract ending soon.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Contractcontract_id | Yes | The record. |
Due ondue_on | Yes | A date. |
Work anniversary or birthday
hrm.employee.anniversary.v1
Fires when: Work anniversary or birthday.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Occasionoccasion | Yes | One of the allowed values. Options: joining, birthday |
Local datelocal_date | Yes | A date. |
Employee exit confirmed
hrm.employee.termination_approved.v1
Fires when: Employee exit confirmed.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Effective oneffective_on | Yes | A date. |
Reasonreason | Yes | Text or a value from the record. |
Employee document expiring
hrm.employee.document_expiring.v1
Fires when: Employee document expiring.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Documentdocument_id | Yes | The record. |
Expires onexpires_on | Yes | A date. |
Clocked in
hrm.attendance.checked_in.v1
Fires when: Clocked in.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Employeeemployee_id | Yes | The record. |
Atat | Yes | A date and time. |
Sourcesource | Yes | Text or a value from the record. |
Attendance updated
hrm.attendance.updated.v1
Fires when: Attendance updated.
No extra fields. Use the record after the change.
Clocked out
hrm.attendance.checked_out.v1
Fires when: Clocked out.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Employeeemployee_id | Yes | The record. |
Atat | Yes | A date and time. |
Late arrival
hrm.attendance.late_detected.v1
Fires when: Late arrival.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Late minuteslate_minutes | Yes | A number. |
Shiftshift_id | Yes | The record. |
Missed clock-in
hrm.attendance.check_in_missing.v1
Fires when: Missed clock-in.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Employeeemployee_id | Yes | The record. |
Shiftshift_id | Yes | The record. |
Checked atchecked_at | Yes | A date and time. |
Missed clock-out
hrm.attendance.check_out_missing.v1
Fires when: Missed clock-out.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Employeeemployee_id | Yes | The record. |
Cutoff atcutoff_at | Yes | A date and time. |
Left early
hrm.attendance.early_departure.v1
Fires when: Left early.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Early minutesearly_minutes | Yes | A number. |
Attendance correction approved
hrm.attendance.corrected.v1
Fires when: Attendance correction approved.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Requestrequest_id | Yes | The record. |
Approverapprover_id | Yes | The record. |
Clocked in outside work location
hrm.attendance.outside_geofence.v1
Fires when: Clocked in outside work location.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Distance mdistance_m | Yes | Text or a value from the record. |
Accuracy maccuracy_m | Yes | Text or a value from the record. |
Branchbranch_id | Yes | The record. |
Shift assigned
hrm.shift.assigned.v1
Fires when: Shift assigned.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Employeeemployee_id | Yes | The record. |
Shiftshift_id | Yes | The record. |
Employee shift updated
hrm.shift.updated.v1
Fires when: Employee shift updated.
No extra fields. Use the record after the change.
Shift changed
hrm.shift.changed.v1
Fires when: Shift changed.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Old shiftold_shift_id | No | The record. |
New shiftnew_shift_id | Yes | The record. |
Schedule revisionschedule_revision | Yes | A number. |
Shift starting soon
hrm.shift.starts_soon.v1
Fires when: Shift starting soon.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Starts atstarts_at | Yes | A date and time. |
Offsetoffset | Yes | Text or a value from the record. |
Shift change requested
hrm.shift.swap_requested.v1
Fires when: Shift change requested.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Requestrequest_id | Yes | The record. |
Other employeeother_employee_id | Yes | The record. |
Leave requested
hrm.leave.requested.v1
Fires when: Leave requested.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Employeeemployee_id | Yes | The record. |
Typetype_id | Yes | The record. |
Starts onstarts_on | Yes | A date. |
Ends onends_on | Yes | A date. |
Leave updated
hrm.leave.updated.v1
Fires when: Leave updated.
No extra fields. Use the record after the change.
Leave approved
hrm.leave.approved.v1
Fires when: Leave approved.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Approvalapproval_id | Yes | The record. |
Approved byapproved_by | Yes | The record. |
Leave rejected
hrm.leave.rejected.v1
Fires when: Leave rejected.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Reasonreason | Yes | Text or a value from the record. |
Leave cancelled
hrm.leave.cancelled.v1
Fires when: Leave cancelled.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Reasonreason | Yes | Text or a value from the record. |
Leave starting soon
hrm.leave.starts_soon.v1
Fires when: Leave starting soon.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Starts onstarts_on | Yes | A date. |
Offsetoffset | Yes | Text or a value from the record. |
Leave balance low
hrm.leave.balance_low.v1
Fires when: Leave balance low.
Extra fields
| Field | Required? | What it is |
|---|---|---|
Balancebalance | Yes | An amount. |
Thresholdthreshold | Yes | An amount. |
Typetype_id | Yes | The record. |