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

The names of the attributes are returned according to the given locale.

**Type**: String\[ ]

**Parameters**

| Name            | Type   | Value                                 |
| --------------- | ------ | ------------------------------------- |
| sessionId       | String | ID of the session                     |
| recipientListId | long   | ID of the recipient list              |
| locale          | String | Must be any locale like de or en etc. |

**Return values**

Names of all attributes a recipient may have in the recipient list

If a language is not supported, the default values are returned.

**Code structure**

```javascript
String[] getAttributeNames(String sessionId, long recipientListId, String locale)
```
