---
title: getFilename
slug: campaign/docs/getfilename
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

**Type**: String

**Parameters**

| Name         | Type   | Value                |
| ------------ | ------ | -------------------- |
| sessionId    | String | ID of the session    |
| attachmentId | long   | ID of the attachment |

**Return values**

File name of the attachment

**Code structure**

```javascript
String getFilename(String sessionId, long attachmentId)
```
