---
title: getAllAssigned
slug: campaign/docs/getallassigned
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

A maximum of 1,000 entries can be returned per query.

**Type**: String\[ ]

**Parameters**

| Name            | Type    | Value                                          |
| --------------- | ------- | ---------------------------------------------- |
| sessionId       | String  | ID of the current session                      |
| blockId         | long    | ID of the coupon block                         |
| mailingId       | long    | ID of the mailing                              |
| startEntry      | integer | (optional) Number of the entry to start with   |
| numberOfEntries | integer | (optional) Maximum number of entries to return |

**Return values**

All coupon codes used in the queried mailing

**Code structure**

```javascript
String[] getAllAssigned(String sessionId, long blockId, long mailingId, int startEntry, int numberOfEntries)
```
