Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
- _departmentRecId
Type: OMDepartmentRecId Extended Data Type
A record ID value that represents the OMOperatingUnit table for which to calculate the worker total.
- _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.