Skip to content

alias.set ​

Updates the alias of a given element within the dimension.

js
alias.set(dimensionName, aliasName, elementName, value)

Parameters ​

ParameterTypeDescription
dimensionNamestringThe dimension's name.
aliasNamestringThe alias's name.
elementNamestringThe element's name.
valuestringThe alternate name to save as the element's alias.

Returns ​

string

An empty string when it succeeds, or a message when it fails.

When the alias isn't updated

  • The element must already exist.
  • The alias can't be the element's own name.
  • The alias can't be another element's name or alias.

Examples ​

js
alias.set("Account", "No - Name", "600000", "600000 - Revenue");
  • alias.get: returns the alias of a given element from within the dimension.
  • alias.wipe: wipes the data on an alias within a dimension, keeping the alias itself.