---
title: containsByRecipientList
slug: campaign/docs/containsbyrecipientlist
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

:::hint{type="warning"}
**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 |
| recipientId     | String | ID of the recipient      |

**Return values**

- 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 containsByRecipientList(String sessionId, long recipientListId, String recipientId)
```
