> For the complete documentation index, see [llms.txt](https://brixxbox.gitbook.io/brixxbox-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://brixxbox.gitbook.io/brixxbox-documentation/client-api-reference/functions/getattachmentid.md).

# getAttachmentId

Returns the id of an attachment of the current record by looking for the given file name.

### Parameters

fileName - the name of the file\
attachmentApp - name of the app for the attachment (optional)\
recordId - Record id, where the attachment is linked to

### Example Usages

```javascript
   brixxApi.getAttachmentId("Invoice1.pdf", "attachmentApp", 1)
```
