HcmWorker.isEmployedInPeriod Method

Determines whether the worker is affiliated with the same legal entity for the whole duration of a period.

Syntax

public boolean isEmployedInPeriod(
    CompanyInfoRecId _legalEntity, 
    utcdatetime _periodFrom, 
    utcdatetime _periodTo)

Run On

Called

Parameters

  • _periodFrom
    Type: utcdatetime
    The first day of the period for which to check the employment.
  • _periodTo
    Type: utcdatetime
    The last day of the period for which to check the employment.

Return Value

Type: boolean
true if the worker is affiliated with the same legal entity in a period; otherwise, false.

See Also

Reference

HcmWorker Table