# LeaveBalancesGroupedByEmployerId Summed up leave balance total and grouped by __Activity name :__ GetLeaveBalancesGroupedByEmployerId Returns the yearly leave balances total per leave type and total per groupBy Select loket.nl (REST) API URL: /providers/employers/{employerId}/leavebalances/grouped Insert loket.nl (REST) API URL: /providers/employers/{employerId}/leavebalances/grouped Update loket.nl (REST) API URL: /providers/employers/{employerId}/leavebalances/grouped Delete loket.nl (REST) API URL: /providers/employers/{employerId}/leavebalances/grouped Select loket.nl (REST) API Operation: get /providers/employers/{employerId}/leavebalances/grouped - Catalog: `LoketNlRest` - Schema: `LeaveBalance` - Field Selection Method: NotRequired - Base Path: `content` This is a read-only table function. The loket.nl (REST) API may not support changing the data or the Invantive SQL driver for loket.nl (REST) does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the loket.nl (REST) API. ## Parameters of Table Function | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `employerId` | `guid` | ☑ | | The unique identifier of the employer | | `groupBy` | `string` | ☑ | | Select the groupBy (Werte: Department, Function) | | `referenceDate` | `datetime` | ☐ | | Set a reference date for the following logic 1. To determine the active `function` and `department` of the employment 2. To calculate `usageAfterToday` and `usageThroughToday` 3. To determine the year for which the leave balance is returned If not provided, "today" is used | ## Columns of Table Function The columns of the table function `LeaveBalancesGroupedByEmployerId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `DUMMY` | `string(1)` | | ☑ | Default column added since the specification specifies that no data is returned. |