Skip to content

dimension.list ​

Lists every dimension in the model.

js
dimension.list()

Returns ​

string

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

Examples ​

js
const dimensions = JSON.parse(dimension.list());
json
[
    { "id": "d-1a2b3c", "name": "Year" },
    { "id": "d-4d5e6f", "name": "Product" }
]