Skip to content

Import absences

Available on
  • Trial
  • Pro
  • Enterprise
Who can do this
  • Import absencesRoles: AdministratorPermission: employee:write
  • Change the reason and notes of another employee's absence by import, and record the reason SICK_LEAVERoles: AdministratorPermission: employee:personal-data

The absences import records your employees’ absences from a CSV file, such as holidays booked in your HR system: whole days from a first day to a last day, with a reason and notes. A row whose employee and first day match an absence that starts that day changes it, and any other row records one.

On the Employees screen, open Actions and click Import absences…. How a CSV import works explains the dialog, the file and its formats.

An absence runs from midnight at the start of firstDay to midnight at the end of lastDay, in your organisation’s time zone. Each row goes through the same rule as an absence recorded on the employee’s page:

  • It takes away every saved shift it touches, past ones included.
  • It is refused when the shifts left would break a working-time limit: an import has no emergency override.

No absence of the employee starts on the row’s first day: the row records one. One does: the row changes its last day, and its reason and notes where the row fills them in. Lengthening an absence takes away the shifts its added days touch; shortening one puts no shift back.

Without the permission employee:personal-data, a row that changes another employee’s absence changes only its last day. A row that records the reason SICK_LEAVE without that permission shows OK in the dialog, but is refused when you import it: record ABSENT instead.

employeeNumber names an employee by their number, exactly. Import the employees first.

ColumnFormatWhat it holdsExample
employeeNumberRequiredImport keyTextThe number of the employee who is awayE-0153
firstDayRequiredImport keyDate, YYYY-MM-DD or your organisation's short dateThe first day away, from its midnight; a re-import changes the employee's absence starting that day2027-07-05
lastDayRequiredDate, YYYY-MM-DD or your organisation's short dateThe last day away, to the midnight after it2027-07-16
reasonOne of VACATION, SICK_LEAVE, PERSONAL, TRAINING, OTHER, ABSENTWhy the employee is awayVACATION
notesTextAnything else about the absenceBooked in March
  • An employeeNumber that matches no employee: an employee without a number can’t be found by an import, so give them one on their page first.
  • A lastDay before the firstDay.
  • The same employee and first day twice in the file.
  • A first day on which two of the employee’s absences start: change them on the employee’s page first.

An imported absence that overlaps work the master plan names the employee on, or takes away a published shift still to come, is an exception: werkplan reports it to the open re-plan, as reported by the import, and tells the people who plan.

Still stuck? Write to support@example.com.