Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the OMOperatingUnit record that represents the department for an HcmWorker object, if one exists.
Syntax
client server public static OMOperatingUnit getPrimaryDepartment(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Run On
Called
Parameters
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker for which the department is returned.
- _asOfDate
Type: utcdatetime
The point in time to use for the selection criteria.
Return Value
Type: OMOperatingUnit Table
The OMOperatingUnit that is associated with the worker by using its primary position, if one exists.