a!map( key1, keyN )
Creates a map of values (Any Type) with each value stored at the corresponding string key. Values stored in maps are not wrapped in variants.
See also: Appian Data Types
Keyword | Type | Description |
---|---|---|
|
Any Type |
A key value pair to store in the map. The value is not wrapped in a variant. |
|
Any Type |
Any additional key value pairs, as needed. |
Map
While similar to a dictionary, which uses curly braces {}
, the values stored in a map are not wrapped in variants. This makes it much easier to get values back out of maps by indexing, without having to worry about type casting. There are no advantages to using dictionaries; prefer using maps over dictionaries where possible.
1
a!map(id: 1, name: "Jane Doe")
1
2
3
4
{
a!map(id: 1, name: "Jane Doe"),
a!map(id: 2, name: "John Doe")
}