Maps Functions maps

Use Map functions in personalization to make interaction with maps easier.

Get get

The get function is used to retrieve the value of a map for a given key.

Syntax

{%= get(map, string) %}

Example

The following operation gets the value of the identity map for the key example@example.com.

{%= get(identityMap,"example@example.com") %}

Keys keys

The keys function is used to retrieve all the keys for a given map.

Syntax

{%= keys(map) %}

Example

The following operation gets all the keys for the map identityMap.

{%= keys(identityMap) %}

Values values

The values function is used to retrieve all the values of a given map.

Syntax

{%= values(map) %}

Example

The following operation gets all the values for the map identityMap.

{%= values(identityMap) %}
recommendation-more-help
b22c9c5d-9208-48f4-b874-1cefb8df4d76