Share via


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

  • _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.

See Also

Reference

HcmWorker Table