Skip to content

alias.get ^v2.4.891

Returns the alias of a given element from within the dimension.

js
alias.get(dimension, aliasName, element, [returnPrincipalIfMissing])

Parameters

  • Dimension - The dimension within which to return the specified alias.
  • aliasName - The identifier of the alias to be returned.
  • Element - The element for which the alias will be returned.
  • returnPrincipalIfMissing - Optional, Boolean, if the alias is not set should the function return the principal name.

The returnPrincipalIfMissing argument is supported from version 2.4.891 onwards.

Example

js
let noName = alias.get("Account", "No - Name", "600000");