# LeavePolicyEntitlementByLeavePolicyId
Leave entitlement for employments of a leave policy
__Activity name :__ GetLeavePolicyEntitlementByLeavePolicyId
Returns the entitlement for each leave type.
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: `LeavePolicyEntitlement`
## 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 `LeavePolicyEntitlementByLeavePolicyId` 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) |