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

**Type**: String

**Parameters**

| Name      | Type   | Value                     |
| --------- | ------ | ------------------------- |
| sessionId | String | ID of the current session |
| blockId   | long   | ID of the coupon block    |

**Return values**

The name of the coupon block

**Code structure**

```javascript
String getName(String sessionId, long blockId)
```
