---
title: getName
slug: campaign/docs/getname-couponblock
docTags: 
createdAt: 2026-07-02T19:01:44.226Z
---

**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)
```
