HcmWorker::getPrimaryDepartmentRecId Method

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

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

See Also

Reference

HcmWorker Table