FlowmageDocs

Terminate employee

BetaChanges dataVersion 2

Records a HiBob employee's departure.

Settings

SettingWhat it is
ConnectionRequiredThe HiBob connection the step signs in with.
Employee idRequiredPicked from the list HiBob offers.
Termination dateRequiredYYYY-MM-DD — the day the employment ends. Bob dates the whole leaver workflow from this.
Last working dayYYYY-MM-DD, when the person stops working before the employment ends — garden leave, holiday taken out. Leave empty when it is the termination date.
ReasonAn entry of your Bob's termination reason list. Leave empty to set none.
Reason typeAn entry of your Bob's reason type list — voluntary or not, as your company words it. Leave empty to set none.
Notice periodHow long the notice period is, in the unit below. Leave empty to set none.
Notice period unit"days" or "weeks" or "month" or "years"
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `hibob`)
employeeIdtexta value from the vendor's own list
terminationDatetext
lastDayOfWorktext
terminationReasontexta value from the vendor's own list
reasonTypetexta value from the vendor's own list
noticeLengthnumber
noticeUnit"days" or "weeks" or "month" or "years", by default "weeks"

Output

FieldType
employeeIdstring
terminatedBob accepted the terminationboolean
Sample output, and the expression for each field
  • employeeId"33328"
  • terminatedtrue

Errors

When a step of this node stops a run, the run page shows a code. Look it up:

Example step

The step as a flow file holds it. Replace each value in <…>.

{
  "config": {
    "connection": "<connection id>",
    "employeeId": "<employee id>",
    "lastDayOfWork": "",
    "noticeUnit": "weeks",
    "reasonType": "",
    "terminationDate": "<termination date>",
    "terminationReason": ""
  },
  "label": "Terminate employee",
  "type": "hibob.terminateEmployee",
  "version": 2
}

Older versions

A flow that already has this version keeps running it. A new step always gets the newest.

Version 1
SettingWhat it is
ConnectionRequiredThe HiBob connection the step signs in with.
Employee idRequiredPicked from the list HiBob offers.
Last working dayRequiredYYYY-MM-DD. Bob dates the whole leaver workflow from this.
Other termination fieldsReason, type and notice period, spelled the way Bob's own termination record spells them. Open a terminated employee's Lifecycle table with the List employee table node to see the names your Bob uses.
Technical details
KeyValue
connectiontexta connection id from `requires.connections` (provider `hibob`)
employeeIdtexta value from the vendor's own list
terminationDatetext
extraFieldsobject (any keys), by default {}