---
title: create
slug: campaign/docs/create-recipientfilterws
docTags: 
createdAt: 2026-07-02T19:01:47.121Z
---

The target group is still  valid after the end of the session.

**Type**: long

**Parameters**

| Name                | Type       | Value                                                                    |
| ------------------- | ---------- | ------------------------------------------------------------------------ |
| sessionId           | String     | ID of the session                                                        |
| filterName          | String     | Internal name of the target group                                        |
| negateCondition     | boolean    | See [Type conversion and formatting rules](docId\:oBo45vU4YUXzQMBi5Pwvz) |
| attributeName       | String     | See [Type conversion and formatting rules](docId\:oBo45vU4YUXzQMBi5Pwvz) |
| operation           | String     | See [Available operators](docId\:oBo45vU4YUXzQMBi5Pwvz)                  |
| operationParameters | String\[ ] | See [Attribute values](docId\:oBo45vU4YUXzQMBi5Pwvz)                     |

**Return values**

ID of the target group

**Code structure**

```javascript
long create(String sessionId, String filterName, boolean negateCondition, String attributeName, String operation, String[] operationParameters)
```
