Gets all the OMOperatingUnit records of type OMDepartment for an HcmWorker object, if they exist.
client server public static OMOperatingUnit getDepartments(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker object for which the operating units are returned.
The point in time to use for the selection criteria.
Type: OMOperatingUnit Table
The OMOperatingUnit records of type OMDepartment that are associated with the worker, if they exist.