Skip to main content
NICE CXone Expert
Expert Success Center

Map functions

These map functions are part of the DekiScript and Expert runtime environment.

map.apply(map, expression) : map

Create a new map by applying the expression to each key value pair.

Name Type Description
map map map value
expression str expression to apply (use '$' to refer to the item)

map.contains(map, key) : bool

Check if the key is contained in a map.

Name Type Description
map map map value
key str key value

map.keys(map) : list

Get the list of keys of a map.

Name Type Description
map map map value

map.keyvalues(map) : list

Create a list of the key-value pairs.

Name Type Description
map map map value

map.remove(map, key) : map

Remove the key from a map and return the modified map.

Name Type Description
map map map value
key str key value

map.select(map, condition) : map

Create a map that only contains key-value pairs for which the condition succeeds.

Name Type Description
map map map value
condition str condition to execute for each item (use '$' to refer to the key-value pair)

map.values(map) : list

Get the list of values of a map.

Name Type Description
map map map value

 

  • Was this article helpful?