---
title: getDataSetFlat
slug: campaign/dev-docs/getdatasetflat-mailingws
createdAt: 2026-08-06T15:53:49.625Z
---

**Type**: String\[ ]

**Parameters**

| Name        | Type   | Value                                                                         |
| ----------- | ------ | ----------------------------------------------------------------------------- |
| sessionId   | String | ID of the session                                                             |
| mailingType | String | Type of the mailing (regular, event, confirmation, template, campaign, split) |

**Return values**

Values of the mailings

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

**Code structure**

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