---
title: getRecipientFilterIds
slug: campaign/docs/getrecipientfilterids
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

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

**Type**: long\[ ]

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |
| mailingId | long   | ID of the mailing |

**Return values**

Target group IDs of the mailing

Returns an empty array if no target group is available.

**Code structure**

```javascript
long[] getRecipientFilterIds(String sessionId, long mailingId)
```
