---
title: importFinishedAndScheduleMailing
slug: campaign/docs/importfinishedandschedulemailing
docTags: 
createdAt: 2026-07-02T19:01:45.097Z
---

After calling this method, no more recipients can be imported for this closed loop process. The scheduled mailing is sent to all recipients that were imported before (see [importRecipients](docId\:J_k4Zell5hRS3T0U69Fgu)). This process may take a while to finish.

**Type**: void

**Parameters**

| Name      | Type   | Value                                                                                                                                               |
| --------- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| sessionId | String | ID of the session                                                                                                                                   |
| waveId    | long   | ID returned by [prepareNewWave](https://world.optimizely.com/documentation/developer-guides/campaign/SOAP-API/closedloopwebservice/preparenewwave/) |

**Return values**

–

**Code structure**

```javascript
void importFinishedAndScheduleMailing(String sessionId, long waveId)
```
