---
title: getName
slug: campaign/docs/getname-optinprocess
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: String

**Parameters**

| Name           | Type   | Value                    |
| -------------- | ------ | ------------------------ |
| sessionId      | String | ID of the session        |
| optinProcessId | long   | ID of the opt-in process |

**Return values**

Name of the opt-in process

**Code structure**

```javascript
String getName(String sessionId, long optinProcessId)
```
