# DeclarationsWithAttachmentByEmploymentId
Get a list of declarations with attachment
__Activity name :__ GetDeclarationsWithAttachmentByEmploymentId
Get a list of all declarationId's of declarations that have an attachment to it.
The attachment is stored in Qwoater, and thus on the background a call to Qwoater will be performed to check whether an attachment is available for a declaration.
If an attachment is available then a call may be performed to the attachment download endpoint to actually start downloading the attachment for this 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: `DeclarationsAttachments`
## 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 `DeclarationsWithAttachmentByEmploymentId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `declarationId` | `guid` | | ☐ | The unique identifier of an object (GUID/UUID) |