---
title: getIds
slug: campaign/docs/getids-mailingws
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: long\[ ]

**Parameters**

| Name        | Type   | Value                                                                          |
| ----------- | ------ | ------------------------------------------------------------------------------ |
| sessionId   | String | ID of the session                                                              |
| mailingType | String | Type of the mailing  (regular, event, confirmation, template, campaign, split) |

**Return values**

IDs of all mailings of the given type

**Code structure**

```javascript
long[] getIds(String sessionId, String mailingType)
```
