---
title: getAttachmentIds
slug: campaign/docs/getattachmentids
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**Type**: long\[ ]

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

IDs of the attachments

**Code structure**

```javascript
long[] getAttachmentIds(String sessionId, long mailingId)
```
