---
url: /process-functions/dimension-list.md
description: Lists every dimension in the model.
---

# dimension.list

Lists every dimension in the model.

```js
dimension.list()
```

## Returns

The dimensions as a JSON string, read with `JSON.parse()`. Each dimension has an `id` and `name`.

## Examples

::: code-group

```js [list.js]
const dimensions = JSON.parse(dimension.list());
```

```json [Result]
[
    { "id": "d-1a2b3c", "name": "Year" },
    { "id": "d-4d5e6f", "name": "Product" }
]
```

:::
