Zum Inhalt

Sloneek HR Integration

WFM can import approved employee absences from Sloneek HR. Import runs automatically every hour and transfers the absences into the schedule, where they block shifts and count toward the vacation fund.


What gets imported

WFM imports every approved absence from Sloneek. Employees are matched to WFM employees by email address.

Field Description
Employee email Matched to WFM employees by email
From/To Absence start and end
Absence type The Sloneek absence event (Dovolenka, Lekár, …), used for the type mapping below
Status Only absences with status approved are imported

Configure Sloneek integration

  1. Go to Settings > Integrations > Applications.
  2. Add a new integration and choose the type Sloneek.
  3. Fill in:

    Field Description
    Client ID Sloneek API client id
    Client Secret Sloneek API client secret

    Both values are stored encrypted.

  4. Click Save. WFM connects to Sloneek and loads the list of absence types for the mapping table.


Absence type mapping

After the credentials are saved, the Absence type mapping section lets you map each Sloneek absence type to a WFM request type — for example, so that holidays and doctor visits appear with the right label and colour in the schedule.

  1. Under Default request type, choose the request type used for any absence whose type you do not map.
  2. For each absence type you want to show specifically, add a row: pick the Absence type (for example Dovolenka or Lekár) and the Request type it maps to.
  3. Click Save.

Only time-off request types are offered as mapping targets, because an imported absence always represents time off. An absence whose type is not mapped falls back to the default request type.


How import works

Import runs automatically via a cron job every hour. The process:

  1. Connects to the Sloneek API using the saved credentials.
  2. Downloads approved absences for the import window.
  3. Matches employees to WFM employees by email.
  4. Creates or updates the matching WFM records (marked with source "sloneek").

Each imported absence also appears as an accepted time-off request in the schedule.


How imported data is used

Shift planning

When generating schedules, WFM checks for absence conflicts. If an employee has an imported absence during a scheduled shift, the shift is automatically adjusted or split and workplace administrators receive a notification.

Vacation fund

Imported absences count toward the employee's vacation usage. The vacation fund tracks usage across all sources (Sloneek, Pinya, manual requests, other integrations).


Data matching

Employees are matched between Sloneek and WFM by email address. Make sure employee emails are consistent across both systems. If an employee exists in Sloneek but not in WFM (no matching email), the absence is skipped.


Notes

  • The type mapping is for display only — an unmapped absence is still imported and still blocks the schedule, it is just shown as the default (generic) time-off type.
  • Re-import does not create duplicate records; existing records are matched and updated.
  • The absence-type list is loaded from Sloneek when the integration is saved and refreshed during the hourly import, so newly added Sloneek absence types appear automatically.
  • If the credentials are invalid or Sloneek is unavailable, the import logs an error and retries next hour.