---
title: setProperty
slug: campaign/docs/setproperty
docTags: 
createdAt: 2026-07-02T19:01:45.566Z
---

**Type**: void

**Parameters**

| Name      | Type   | Value                                                                                                                 |
| --------- | ------ | --------------------------------------------------------------------------------------------------------------------- |
| sessionId | String | ID of the session                                                                                                     |
| mailingId | long   | ID of the mailing                                                                                                     |
| Name      | String | Name of the mailing property                                                                                          |
| Value     | String | Value that has to be set<br /><br />The value will be set as "as is"; i.e., no tracking link conversion etc. is done. |

**Return values**

- **Code structure**

```javascript
void setProperty(String sessionId, long mailingId, String name, String value)
```
