Skip to main content
February 13, 2024
Solved

Map and dictionary data types

  • February 13, 2024
  • 1 reply
  • 2 views

what is the differance between map & dictonary data types.

when we will get this map type and dictionary type

    Best answer by amaans4178

    Inside of a map, each key has an associated value and that value's type is preserved , the values stored in a map are not wrapped in variants while a dictionary wraps a variant AnyType around each value in the dictionary. Map 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.

    docs.appian.com/.../fnc_system_map.html

    As per your second part of the question it depends on how you are manipulating your data, some function returns map for ex a!queryRecordType() returns a map.

    1 reply

    amaans4178
    February 13, 2024

    Inside of a map, each key has an associated value and that value's type is preserved , the values stored in a map are not wrapped in variants while a dictionary wraps a variant AnyType around each value in the dictionary. Map 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.

    docs.appian.com/.../fnc_system_map.html

    As per your second part of the question it depends on how you are manipulating your data, some function returns map for ex a!queryRecordType() returns a map.