HcmWorker::getLegalEntity Method
Retrieves the oldest CompanyInfo record for an HcmWorker object, if it exists.
Syntax
client server public static CompanyInfo getLegalEntity(HcmWorkerRecId _workerRecId, [utcdatetime _asOfDate])
Run On
Called
Parameters
- _workerRecId
Type: HcmWorkerRecId Extended Data Type
The record ID of the HcmWorker object for which the legal entity is returned.
- _asOfDate
Type: utcdatetime
The point in time to use for the selection criteria.
Return Value
Type: CompanyInfo Table
The oldest CompanyInfo record of the worker, if one exists.