---
title: getAssignedMailings
slug: campaign/dev-docs/getassignedmailings
createdAt: 2026-08-06T15:53:46.322Z
---

**Type**: long\[ ]

**Parameters**

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

**Return values**

The IDs of all mailings in which this block has been used

**Code structure**

```javascript
long[] getAssignedMailings(String sessionId, long blockId)
```
