Arcade Expressions

Esri's Arcade expression language allows Essentials administrators to create expressions that return values for display in a feature's description or label. Arcade expressions configured for a layer can make use of all data contained in that layer's attributes, as well as data obtained by querying other layers in the map, to create new values for use as replacement tokens.

Essentials supports the use of Arcade expressions by assigning each expression a unique token name.  This turns the Arcade expression into a replacement token, which can be used in a layer's Feature Label, Feature Description and Feature Long Description. Arcade expressions are specific to each layer. You add and configure arcade expressions on the Arcade Expressions tab on the Map > Layer page in Manager.

For information about creating Arcade expressions, see Esri's documentation.

When creating Arcade Expressions in Essentials, a profile similar to the Popup profile is used. A profile is the context in which an Arcade expression is evaluated and understood. However, the $datastore global variable is not available in Essentials.

Add an Arcade Expression to a Layer

To add an arcade expression to a layer in Manager:

  1. In Manager, click Map in the side panel, click the Map Services tab, expand the map service that the layer belongs to, and then click the Edit icon next to the layer.

  2. Click the Arcade Expressions tab.

  3. Click Add Arcade Expression to open the Arcade Expressions dialog.

  4. In the Token box, type a token name. This token name identifies this expression and can be used as a replacement token in layer settings such as Feature Label, Feature Description and Feature Long Description.

  5. In the Expression box, type an Arcade expression.

  6. Click OK to create the new Arcade expression.

  7. Click Save Site.

Edit an Arcade Expression

To edit an Arcade expression:

  1. In Manager, click Map in the side panel, click the Map Services tab, expand the map service that the layer belongs to, and then click the Edit icon next to the layer.

  2. Select the Arcade Expressions tab.

  3. To edit an Arcade expression, click the Edit icon beside the Arcade expression and change any of the settings described in Add an Arcade Expression to a Layer.

  4. Click OK.

  5. Click Save Site.

Remove an Arcade Expression

To remove an Arcade expression:

  1. In Manager, click Map in the side panel, click the Map Services tab, expand the map service that the layer belongs to, and then click the Edit icon next to the layer.

  2. Select the Arcade Expressions tab.

  3. Click the Remove this item icon beside the Arcade expression you want to delete.

  4. When the Remove Arcade Expression dialog opens, click OK to confirm the removal of the Arcade expression.

    The Arcade expression disappears from the list.

  5. Click Save Site.