---
title: setRecipientFilterIds
slug: campaign/docs/setrecipientfilterids
createdAt: 2026-07-02T19:01:46.338Z
---

See also [RecipientFilterWebservice](docId\:xmPsVLf4ck0PCtcoP2alH).

**Type**: void

**Parameters**

| Name               | Type    | Value                                                                                                                                                           |
| ------------------ | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sessionId          | String  | ID of the session                                                                                                                                               |
| mailingId          | long    | ID of the mailing                                                                                                                                               |
| recipientFilterIds | long\[] | IDs of the target groups<br /><br />Set the value to 0 to disable the target groups.<br /><br />**Note:** You cannot use temporary target groups for a mailing. |

**Return values**

- **Code structure**

```javascript
void setRecipientFilterIds(String sessionId, long mailingId, long[] recipientFilterIds)
```
