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

**Type**: long

**Parameters**

| Name              | Type   | Value                                                                                                                                                                                                                                                                                                                  |
| ----------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| sessionId         | String | ID of the session                                                                                                                                                                                                                                                                                                      |
| templateMailingId | long   | Mailing ID<br />This ID can be found in the mailing overview or can be retrieved by calling the MailingWebservice [getIds](docId\:y6prc-1x6zBAo0ss3FGDY) or [getIdsInStatus](docId\:jdG93EtV0r60aOooxsQyz) methods. This ID is also returned when creating a new mailing (see [create](docId\:uDKufRGV69oRIXlVFZGe1)). |

**Return values**

**waveId** – This ID identifies the closed loop process and is used by other methods of this web service.

**Code structure**

```java
long prepareNewWave(String sessionId, long templateMailingId)
```
