Skip to content

dimension.getName ​

Returns the name of a dimension.

js
dimension.getName(dimensionId)

Parameters ​

ParameterTypeDescription
dimensionIdstringThe dimension's id.

Returns ​

string

The dimension's name, or "ERROR: Dimension not found" when it can't be found.

Examples ​

js
const dimensionName = dimension.getName("123");