---
title: getDataSetFlat
slug: campaign/docs/getdatasetflat-mailingws
docTags: 
createdAt: 2026-07-02T19:01:45.941Z
---

**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](docId\:vy2Nw8Ub97K-ekbSceB0o). With this method, you can determine the number of values of a mailing.

**Code structure**

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