Skip to content

hierarchy.createOrWipe ​

Creates a hierarchy in a dimension if it doesn't exist, or removes its structure if it does.

js
hierarchy.createOrWipe(dimension, hierarchy)

Parameters ​

ParameterTypeDescription
dimensionstringThe dimension's name or id.
hierarchystringThe 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.createOrWipe("Account", "Profit and Loss");