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