Skip to content

hierarchy.create ​

Creates a hierarchy in a dimension.

js
hierarchy.create(dimension, hierarchy)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.
hierarchystringThe new hierarchy's name.

Returns ​

string

An empty string when it succeeds, or an error message when the dimension can't be found.

Examples ​

js
hierarchy.create("Account", "Profit and Loss");