HcmWorker::getLegalEntities Method
Gets any CompanyInfo records for an HcmWorker record.
Syntax
client server public static CompanyInfo getLegalEntities(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Run On
Called
Parameters
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker for which the legal entities are obtained.
- _asOfDate
Type: utcdatetime
The point in time that will be used for the selection criteria.
Return Value
Type: CompanyInfo Table
Multiple CompanyInfo records that are associated with the worker sorted in the order of most senior to most recent.
Remarks
This API provides more information but is much slower in performance than the HcmWorker::getLegalEntityRecIds API.
When possible, always use the HcmWorker::getLegalEntityRecIds API.