Create absence
BetaChanges data
Books leave, sickness or another absence for a Personio employee.
Settings
| Setting | What it is |
|---|---|
| ConnectionRequired | The Personio connection the step signs in with. |
| Employee idRequired | text |
| Absence type idRequired | The List absence types node gives you the id. |
| StartsRequired | A date and time WITHOUT a timezone offset — Personio reads it in the employee's own timezone. |
| First day | Half days only count when the absence type allows them. |
| Ends | Leave empty for an absence with no end date yet. |
| Last day | "" or "FIRST_HALF" or "SECOND_HALF" |
| Comment | text |
| Substitute id | Only if this absence type's policy allows a substitute. |
| Skip approval | On, Personio books the absence without asking a manager. Personio does not document this on booking, so leave it off unless your tenant accepts it. |
Technical details
| Key | Value |
|---|---|
connection | texta connection id from `requires.connections` (provider `personio`) |
personId | text |
absenceTypeId | text |
startsFrom | text |
startsFromHalf | "" or "FIRST_HALF" or "SECOND_HALF" |
endsAt | text |
endsAtHalf | "" or "FIRST_HALF" or "SECOND_HALF" |
comment | text |
substitutePersonId | text |
skipApproval | true/false, by default false |
Output
| Field | Type |
|---|---|
absenceId | string |
absenceAbsence, as Personio answered it | object |
Sample output, and the expression for each field
- absence
- id"abs_9"
- absenceId"abs_9"
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": {
"absenceTypeId": "<absence type id>",
"comment": "",
"connection": "<connection id>",
"endsAt": "",
"endsAtHalf": "",
"personId": "<employee id>",
"skipApproval": false,
"startsFrom": "<starts>",
"startsFromHalf": "",
"substitutePersonId": ""
},
"label": "Create absence",
"type": "personio.createAbsence",
"version": 1
}