Gets the OMOperatingUnit record that represents the department for an HcmWorker object, if one exists.
client server public static OMOperatingUnit getPrimaryDepartment(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker for which the department is returned.
The point in time to use for the selection criteria.
Type: OMOperatingUnit Table
The OMOperatingUnit that is associated with the worker by using its primary position, if one exists.