---
title: isAssigned
slug: campaign/docs/isassigned
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

**Type**: boolean

**Parameters**

| Name      | Type   | Value                     |
| --------- | ------ | ------------------------- |
| sessionId | String | ID of the current session |
| blockId   | long   | ID of the coupon block    |
| code      | String | Coupon code to be queried |

**Return values**

- true: Coupon code has been assigned to a mailing
- false: Coupon code has not been assigned to a mailing

**Code structure**

```javascript
boolean isAssigned(String sessionId, long blockId, String code)
```
