Skip to content

dimension.createOrWipe ​

Creates a dimension if it doesn't exist, or removes all of its elements if it does.

js
dimension.createOrWipe(dimensionName, type)

Parameters ​

ParameterTypeDescription
dimensionNamestringThe dimension's name.
typestringThe dimension's type: "standard", "measure", "time", "scenario" or "geography".

Returns ​

string

An empty string when it succeeds, or an error message when the type isn't valid.

Examples ​

js
dimension.createOrWipe("Account", "standard");