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

You can replace this method by the .NET replacement methods [getColumnNames](docId\:xnTfVH3KmnlP-eUumA8k4) and [getDataSetFlat](docId:7xNE89n_TWI4-wcfrJt8Z).

**Type**: String\[ ] \[ ]

**Parameters**

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

**Return values**

A data set where the first row contains the column names and the following the values for each attachment.
The columns and the column order of the data set are subject to change.

**Code structure**

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