Skip to content

cube.getId ​

Returns the id of a cube.

js
cube.getId(cubeName)

Parameters ​

ParameterTypeDescription
cubeNamestringThe cube's name.

Returns ​

string

The cube's id, or "ERROR: Cube not found." when the cube can't be found.

Examples ​

js
const cubeId = cube.getId("General Ledger");