HcmPosition::getWorker Method
Retrieves the HcmWorkerRecId value from the HcmPositionWorkerAssignment table for the specified HcmPositionRecId value.
Syntax
client server public static HcmWorkerRecId getWorker(
HcmPositionRecId _positionRecId,
[utcdatetime _asOfDate,
boolean _returnWorkerOnlyIfActiveAssignment])
Run On
Called
Parameters
- _positionRecId
Type: HcmPositionRecId Extended Data Type
The record ID that represents the HcmPosition record for which to retrieve the associated HcmWorkerRecId value.
- _asOfDate
Type: utcdatetime
The point in time that is used for the selection criteria.
- _returnWorkerOnlyIfActiveAssignment
Type: boolean
Return Value
Type: HcmWorkerRecId Extended Data Type
A HcmWorkerRecId value that indicates the HcmWorker record that is assigned to the HcmPosition record at the requested point in time.