# ProtectedEarningsByEmploymentId Get a list of protected earnings records __Activity name :__ GetProtectedEarningsByEmploymentId Get a list of protected earnings records 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: `ProtectedEarnings` ## Parameters of Table Function | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `employmentId` | `guid` | ☑ | | The unique identifier of the employment | ## Columns The columns of the table `ProtectedEarningsByEmploymentId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `endDate` | `datetime` | End Date | ☐ | The end date of the record | | `id` | `guid` | ID | ☐ | The unique identifier of an object (GUID/UUID) | | `startDate` | `datetime` | Start Date | ☐ | Start date of this record A (broken chain)[./#section/Data/Date-chains] is maintained within this resource. __NOTE :__ at the moment of performing a payroll run it will be checked what record is applicable for protected earning (based on the start- and enddate, not based on the payroll period of the payroll run). | | `threshold` | `double` | | ☐ | The total amount of net wage that is protected. |