Define map fields in the UI

Adobe Experience Platform allows you to fully customize the structure of your custom Experience Data Model (XDM) classes, schema field groups, and data types.

You can also define map fields in the Schema Editor to model flexible and dynamic data structures or store a collection of key-value pairs.

When defining a new field in the Platform user interface (UI), use the Type dropdown and select “Map” from the list.

The Schemas Editor with the Type dropdown and Map value highlighted.

A Map value type property appears. This value is required for Map data types. Available values for the map are String and Integer. Select a value from the drop-down list of available options.

The Schemas Editor with the Map value type dropdown highlighted.

Once you have configured the subfield, you must assign it to a field group. Use the Field Group drop down menu, or search field, and select Apply. You can continue to add fields to the object using the same process, or select Save to confirm your settings.

A recording of the field group selection and settings being applied.

Usage restrictions restrictions

XDM places the following restrictions on the use of this data type:

  • Map types MUST be of type object.
  • Map types MUST NOT have properties defined (in other words, they define “empty” objects).
  • Map types MUST include an additionalProperties.type field that describes the values that may be placed within the map, either string or integer.
  • Multi-entity segmentation can only be defined based on the map keys and not the values.
  • Maps are not supported for account audiences.

Ensure that you are only using map-type fields when absolutely necessary, as they carry the following performance drawbacks:

  • Response time from Adobe Experience Platform Query Service degrades from three seconds to ten seconds for 100 million records.
  • Maps must have fewer than 16 keys or else risk further degradation.
NOTE
The Platform UI has limitations in how it can extract the keys of map-type fields. Whereas object-type fields can be expanded, maps are displayed as a single field instead. Map fields created through the Schema Registry API that are not string or integer data types are displayed as “Complex” data types.

Next steps

After reading this document, you are now able to define map fields in the Platform UI. Remember that you can only use classes and field groups to add fields to schemas. To learn more about how to manage these resources in the UI, see the guides on creating and editing classes and field groups.

For more information on the capabilities of the Schemas workspace, see the Schemas workspace overview.

recommendation-more-help
62e9ffd9-1c74-4cef-8f47-0d00af32fc07