---
title: getAllFlat
slug: campaign/docs/getallflat
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**Type**: String\[ ]

**Parameters**

| Name            | Type       | Value                                                      |
| --------------- | ---------- | ---------------------------------------------------------- |
| sessionId       | String     | ID of the session                                          |
| recipientListId | long       | ID of the recipient list                                   |
| attributeNames  | String\[ ] | Names of the fields, whose recipient data shall be queried |

**Return values**

All recipients contained in the recipient list

Every value of the returned array is assigned to a value of the committed array parameter **attributeNames** for a recipient.

**Code structure**

```javascript
String[] getAllFlat(String sessionId, long recipientListId, String[] attributeNames)
```
