# DeclarationByDeclarationId Details of a declaration __Activity name :__ GetDeclarationByDeclarationId Get the details of a declaration 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: `Declarations` ## Parameters of Table Function | Name | Data Type | Required | Default Value | Documentation | |---|:---:|:---:|:---:|---| | `declarationId` | `guid` | ☑ | | The unique identifier of the declaration | ## Columns The columns of the table `DeclarationByDeclarationId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `calculatedDistanceByRoutingService` | `double` | | ☐ | The value calulated by the routing service | | `dateOfLastChangeByEmployee` | `datetime` | | ☐ | The time the declaration was last changed | | `dateOfSubmissionByEmployee` | `datetime` | | ☐ | The time the declaration was submitted | | `declarationComment` | `string(1000)` | | ☐ | The comment left by the employee | | `declarationDate` | `datetime` | | ☐ | The date to which the declaration is applicable. As requested by the employee. | | `declarationStatus_key` | `int32` | | ☐ | | | `declarationStatus_value` | `string` | | ☐ | | | `id` | `guid` | ID | ☐ | The unique identifier of an object (GUID/UUID) | | `numberOfUnits` | `double` | Number of Units | ☐ | The number of units requested | | `payrollComponent_deductionOrPayment_key` | `int32` | | ☐ | | | `payrollComponent_deductionOrPayment_value` | `string` | | ☐ | | | `payrollComponent_description` | `string(14)` | Payroll Component Description | ☐ | The description of the payroll component | | `payrollComponent_deviatingDescription` | `string(50)` | | ☐ | A longer and more user-friendly description of the payroll component. | | `payrollComponent_key` | `int32` | Payroll Component Key | ☐ | The number for the payroll component. This number has meaning to payroll professionals using Loket.nl who often know it by heart. | | `payrollComponent_routeType_key` | `int32` | | ☐ | | | `payrollComponent_routeType_value` | `string` | | ☐ | | | `processedInPayrollPeriod_periodEndDate` | `datetime` | | ☐ | The last day of the period | | `processedInPayrollPeriod_periodNumber` | `int32` | | ☐ | The period (month [1 to 12] , 4 weeks [1 to 13] or week [1 to 53]) of the payroll period | | `processedInPayrollPeriod_periodStartDate` | `datetime` | | ☐ | The first day of the period | | `processedInPayrollPeriod_year` | `int32` | | ☐ | The year of the payroll period | | `reasonForDeviatingFromCalculatedDistance` | `string(1000)` | | ☐ | The reason why the employee deviated form the calculated distance. |