# EmployeeDataAuditTrailByEmployerId
Get the employee data audit trail
__Activity name :__ GetEmployeeDataAuditTrailByEmployerId
Get the mutations for the all the tables linked to the employee (this includes employment and underlying entities).
Select loket.nl (REST) API URL: /providers/employers/{employerId}/auditTrail/EmployeeData
Insert loket.nl (REST) API URL: /providers/employers/{employerId}/auditTrail/EmployeeData
Update loket.nl (REST) API URL: /providers/employers/{employerId}/auditTrail/EmployeeData
Delete loket.nl (REST) API URL: /providers/employers/{employerId}/auditTrail/EmployeeData
Select loket.nl (REST) API Operation: get /providers/employers/{employerId}/auditTrail/EmployeeData
- Catalog: `LoketNlRest`
- Schema: `AuditTrail`
- Field Selection Method: NotRequired
- Base Path: `_embedded[*]`
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 |
| `endDate` | `string` | ☑ | | The end date |
| `startDate` | `string` | ☑ | | The start date |
## Columns of Table Function
The columns of the table function `EmployeeDataAuditTrailByEmployerId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `employee_employeeNumber` | `int32` | | ☐ | The employee number to uniquely identify a employee within an employer. |
| `employee_id` | `guid` | | ☐ | The unique identifier (GUID/UUID) |
| `employee_name` | `string(25)` | | ☐ | The name of the employee |
| `employer_companyName` | `string(70)` | | ☐ | Name of the company |
| `employer_employerNumber` | `int32` | | ☐ | The employer number is used in various overviews and exports to identify a specific employer in Loket (please note: this is not the identifier used in the REST API). |
| `employer_id` | `guid` | | ☐ | The unique identifier (GUID/UUID) |
| `employment_id` | `guid` | | ☐ | The unique identifier (GUID/UUID) |
| `employment_startDate` | `datetime` | | ☐ | The date on which this employment starts. |
| `entity_key` | `int32` | | ☐ | The key of the entity |
| `field_key` | `int32` | | ☐ | The key of the field |
| `field_value` | `string(50)` | | ☐ | Description of the field |
| `identification_description` | `string(255)` | | ☐ | Extra identifying information for the mutation |
| `mutationOrigin_key` | `int32` | | ☐ | The key of the mutationOrigin |
| `mutationOrigin_value` | `string(50)` | | ☐ | Description of the mutationOrigin |
| `mutationType_key` | `int32` | | ☐ | The key of the mutationType |
| `mutationType_value` | `string(50)` | | ☐ | Description of the mutationType |
| `newValue` | `string(250)` | | ☐ | The value of the field after the change. Incase of an delete the nieuwValue will be NULL. |
| `oldValue` | `string(250)` | | ☐ | The value befor the change. Incase of an create the oldValue will be NULL. |
| `performedBy_formattedName` | `string` | | ☐ | preformated user name for displaying. \<lastname\>\", \"\<initials\>\" \"\<prefix\> |
| `performedBy_id` | `guid` | | ☐ | The unique identifier of an object (GUID/UUID) |
| `performedBy_initials` | `string(6)` | | ☐ | The initials of the user |
| `performedBy_lastName` | `string(25)` | | ☐ | The last name of the user |
| `performedBy_prefix` | `string(10)` | | ☐ | The prefix of the user |
| `timeStamp` | `datetime` | | ☐ | The time the mutation was performed |