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.
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.
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.
XDM places the following restrictions on the use of this data type:
object
.additionalProperties.type
field that describes the values that may be placed within the map, either string
or integer
.Ensure that you are only using map-type fields when absolutely necessary, as they carry the following performance drawbacks:
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.
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.