---
title: getDataSet
slug: campaign/docs/getdataset-mailingws
docTags: 
createdAt: 2026-07-02T19:01:46.338Z
---

You can replace this method by the .NET replacement methods [getColumnNames](docId\:vy2Nw8Ub97K-ekbSceB0o) and [getDataSetFlat](docId:-3CIOg8vkbmzrcBUjkCgy).

**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**

A data set where the first row contains the column names and the following the values for each mailing

The columns and the column order of the data set are subject to change.

**Code structure**

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