# LeavePolicyAccrualByLeavePolicyId
Leave accrual for employments of a leave policy
__Activity name :__ GetLeavePolicyAccrualByLeavePolicyId
Returns the accrual for each leave type for all employments within an employer that have accrual for the given leavepolicy.
This is a read-only table function. The Loket.nl REST API may not support changing the data, or the Invantive UniversalSQL driver for Loket.nl REST does not support it. In the latter case, use the table NativePlatformScalarRequests to upload data to the Loket.nl REST API.
- Catalog: `LoketNlRest`
- Schema: `LeavePolicyAccrual`
## Parameters of Table Function
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `leavePolicyId` | `guid` | ☑ | | The unique identifier of the leave policy |
| `month` | `int32` | ☐ | | The month |
| `year` | `int32` | ☐ | | The year |
## Columns
The columns of the table `LeavePolicyAccrualByLeavePolicyId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `id` | `guid` | ID | ☐ | The unique identifier of an object (GUID/UUID) |