Skip to content

dimension.getId ​

Returns the id of a dimension.

js
dimension.getId(dimensionName)

Parameters ​

ParameterTypeDescription
dimensionNamestringThe dimension's name.

Returns ​

string

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

Examples ​

js
const dimensionId = dimension.getId("time");