---
title: getDataSetFlat
slug: campaign-dev-docs/getdatasetflat-attachment
createdAt: 2026-07-02T19:01:46.338Z
---

**Type**: String\[ ]

**Parameters**

| Name      | Type   | Value             |
| --------- | ------ | ----------------- |
| sessionId | String | ID of the session |

**Return values**

Values of the attachments
To assign the returned values to different attachments, you can use the [getColumnNames](https://docs.optimizely.com/campaign-dev-docs/getcolumnnames-attachment) method. With this method, you can determine the number of values of an attachment.

**Code structure**

```javascript
String[] getDataSetFlat(String sessionId)
```
