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

**Prerequisite:** Recipient list-based unsubscribe lists have been created.

:::hint{type="info"}
**Note**
If only one client-wide unsubscribe list exists, this method does exactly the same as [contains](docId\:PKjSxytIDuPEV-XGLRU89).
:::

**Type**: Boolean\[ ]

**Parameters**

| Name            | Type       | Value                    |
| --------------- | ---------- | ------------------------ |
| sessionId       | String     | ID of the session        |
| recipientListId | long       | ID of the recipient list |
| recipientIds    | String\[ ] | IDs of the recipients    |

**Return values**

For each recipient:

- true: Recipient is found on at least one recipient list-based unsubscribe list
- false: Recipient is not found on any recipient list-based unsubscribe list

**Code structure**

```javascript
boolean[] containsAllByRecipientList(String sessionId, long recipientListId, String[] recipientIds)
```
