---
title: getName
slug: campaign/dev-docs/getname-couponblock
createdAt: 2026-08-06T15:53:44.094Z
---

**Type**: String

**Parameters**

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

**Return values**

Name of the attachment

**Code structure**

```javascript
String getName(string sessionId, long attachmentId)
```
