---
title: setAttachmentIds
slug: campaign/docs/setattachmentids
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

**Type**: void

**Parameters**

| Name          | Type     | Value                  |
| ------------- | -------- | ---------------------- |
| sessionId     | String   | ID of the session      |
| mailingId     | long     | ID of the mailing      |
| attachmentIds | long\[ ] | IDs of the attachments |

**Return values**

- **Code structure**

```javascript
void setAttachmentIds(String sessionId, long mailingId, long[] attachmentIds)
```
