HcmPosition::getReportsToWorker Method
Retrieves the HcmWorkerRecId value from the HcmPositionWorkerAssignment table that relates to the parent position associated with a HcmPositionRecId value by using the specified hierarchy.
Syntax
client server public static HcmWorkerRecId getReportsToWorker(
HcmPositionRecId _positionRecId,
[utcdatetime _asOfDate,
HcmPositionHierarchyTypeRecId _hierarchyTypeRecId])
Run On
Called
Parameters
- _positionRecId
Type: HcmPositionRecId Extended Data Type
A record ID value that represents the HcmPosition record in which to retrieve the HcmWorkerRecid value of the parent position.
- _asOfDate
Type: utcdatetime
The point in time that is used for the selection criteria.
- _hierarchyTypeRecId
Type: HcmPositionHierarchyTypeRecId Extended Data Type
A record ID value that represents the HcmPositionHierarchyType value that is used to select the parent position.
Return Value
Type: HcmWorkerRecId Extended Data Type
A HcmWorkerRecId value that indicates the HcmWorker record that is assigned as the parent of the HcmPosition record at the requested point in time by using the specified HcmPositionHierarchyType value.
Remarks
If a hierarchy type is not provided, a hierarchy of type line is used to determine the parent position in the HcmPositionHierarchy table.