# exportData method

Information noteSTABLE.   
  
This API is reliable and breaking changes are unlikely.

qlik.app.visualization.exportData(options)

Exports data of the underlying hyperCube in OOXML or CSV format.

Information noteThe entire hyper cube is exported, not only the current data-page.

Information noteDownload to Excel with enhanced table formatting is not supported via the API.

## Version history

Version history

| Version state | Details |
| --- | --- |
| Introduced | Qlik Sense September 2018 |

## Parameters

### options

Type: Object

Properties

options object properties

| Name | Type | Description |
| --- | --- | --- |
| format | String | Data format. Can be one of:<br><br><ul> <li><span>OOXML</span>: open XML, default</li> <li><span>CSV_C</span>: comma separated CSV</li> <li><span>CSV_T</span>: tab separated CSV</li> </ul> |
| state | String | Can be one of:<br><br><ul> <li><span>A</span>: all values</li> <li><span>P</span>: possible values</li> </ul><br><br>Default is P. |

## Returns

A promise of the file location URL.

## Example

```

var app = qlik.openApp('c31e2aba-3b46-4b13-8b87-c5c2514dea1d', config);
app.visualization.get('xGhjKl').then(function(vis){
    vis.exportData({format:'CSV_T', state: 'A'}).then(function (link) {
        window.open(link);
    });
});
```