---
title: setFilename
slug: campaign/docs/setfilename
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

**Type**: void

**Parameters**

| Name         | Type   | Value                                   |
| ------------ | ------ | --------------------------------------- |
| sessionId    | String | ID of the session                       |
| attachmentId | long   | ID of the attachment                    |
| filename     | String | File name to be used for the attachment |

**Return values**

- **Code structure**

```javascript
void setFilename(String sessionId, long attachmentId, String filename)
```
