syncAllToHrWorks
Starts an HR WORKS synchronisation of one residential park immediately, instead of waiting for the nightly one.
The run is confined to the park named in the input: only people in that park's organisation unit are imported, and only that park's records are reconciled. The nightly run covers every linked park, one park at a time, in runs of exactly the same shape.
Fails when the park is not linked to an HR WORKS organisation unit, is archived, or has no Odoo department.
Returns as soon as the work is queued, listing the modules that will run, because a first
synchronisation of a few thousand employees takes minutes rather than seconds. Watch
Query.hrWorksSyncRuns for the outcome.
Runs of different parks do not block each other: the lock is per tenant, park and module, so a synchronisation of another park is no reason for this one to wait.
A module of *this* park whose run is already in progress is left out, and the returned list is
what will actually run — so a repeated press costs nothing rather than a second full run. When
every requested module is already running, this fails instead, naming the run in progress.
Watch Query.hrWorksSyncRuns for the outcome; a module shown as RUNNING is one this mutation
will decline.
Requires authorization features: park:hrworks:edit
syncAllToHrWorks(
input: SyncAllToHrWorksInput!
): [HrWorksSyncModule!]!
Directives
auth
Requires authorization features: park:hrworks:edit
Arguments
syncAllToHrWorks.input ● SyncAllToHrWorksInput! non-null input
Type
HrWorksSyncModule enum
The parts of the HR WORKS synchronisation, each of which runs and is reported on separately.