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 OMDepartmentRecId value that represents the primary department for an HcmWorker record.
Syntax
client server public static OMDepartmentRecId getPrimaryDepartmentRecId(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Run On
Called
Parameters
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker record for which the department is obtained.
- _asOfDate
Type: utcdatetime
The point in time that will be used for the selection criteria.
Return Value
Type: OMDepartmentRecId Extended Data Type
A OMDepartmentRecId value that indicates whether the department that is associated with the worker by way of its primary position.