Share via


OMOperatingUnit::numberOfWorkers Method

Calculates the number of unique workers for a specified department and its children, if it is specified.

Syntax

server public static HRMNumberOfEmployees numberOfWorkers(
   [boolean _countChildren, 
    boolean _includeContractors, 
    OMDepartmentRecId _departmentRecId, 
    utcdatetime _perDate])

Run On

Server

Parameters

  • _countChildren
    Type: boolean
    A Boolean value that specifies whether to include child departments in the worker total; optional.
  • _includeContractors
    Type: boolean
    A Boolean value that specifies whether to include contract workers in the worker total; optional.
  • _perDate
    Type: utcdatetime
    An as-of utcdatetime to base date range selections upon.

Return Value

Type: HRMNumberOfEmployees Extended Data Type
The count of the total number of workers for a department or department and its children; see remarks.

Remarks

Workers can be affiliated to multiple positions across multiple departments, but the intent of this method is to provide the unique number of employees, regardless.

See Also

Reference

OMOperatingUnit Table