---
title: changeRecipientId2
slug: campaign/docs/changerecipientid2
docTags: 
createdAt: 2026-07-02T19:01:44.226Z
---

This method is especially useful when email addresses are the primary key of your recipient list. If you change a recipient's ID, all historical information is preserved and assigned to the new ID.

**Type**: void

**Parameters**

| Name           | Type   | Value                   |
| -------------- | ------ | ----------------------- |
| sessionId      | String | ID of the session       |
| recipientId    | String | Old ID of the recipient |
| newRecipientId | String | New ID of the recipient |

**Return values**

- **Code structure**

```javascript
void changeRecipientId2(String sessionId, String recipientId, String newRecipientId)
```
