Adobe Experience Platform · updated

XDM schemas and field groups: how a schema is put together

An XDM schema is the agreed shape of your data in Adobe Experience Platform. Every schema is one class plus zero or more field groups. The class says whether the data is a record, such as a person, or a time series, such as an event. Field groups add reusable sets of fields, such as web details or commerce details. Once a schema has data, you can add to it but not remove or rename fields.

In plain words

Before Adobe's platform accepts data, it needs to know what the data looks like: which fields exist and what type each one is. That description is the schema. Adobe supplies ready-made building blocks so that a page view or a purchase is described the same way by everyone. Getting the schema right early matters, because later changes can only add.

The formula Adobe gives

Class + schema field group = XDM schema. A schema has one class and zero or more field groups, so a schema with no field group is allowed.

Building blockWhat it does
ClassSets the behaviour of the data, record or time series, and the smallest set of common fields. It also decides which field groups can be used.
Field groupA reusable component that defines one or more fields for a purpose, such as personal details or an address. Each field group says which classes it works with.
Data typeA reusable structure used as the type of a field, such as Web page details or Order.

Record and time series

  • Record data gives the attributes of a subject, which could be an organisation or an individual.
  • Time-series data is a snapshot of the system at the time an action was taken.
  • Adobe names two standard classes that nearly all downstream Experience Platform processes need: XDM Individual Profile and XDM ExperienceEvent.
  • The XDM ExperienceEvent class requires two fields on every schema based on it: _id and timestamp. The timestamp is ISO 8601, must be in the past and must be from 1970 onwards.

Field groups a website usually needs

Field groupAddsExample paths
Web DetailsThe web object: page details, link interactions and the referrerweb.webPageDetails.name, web.webPageDetails.URL, web.webInteraction.type, web.webReferrer.URL
Commerce DetailsThe commerce object and the productListItems arraycommerce.purchases.value, commerce.order.purchaseID, productListItems[].SKU

Adobe strongly recommends standard field groups wherever they fit, because Experience Platform services understand those fields without extra set-up. For ideas that are specific to your organisation you define your own field group.

Identities

Fields can be marked as identities; on ingestion their values go into the identity graph for that individual. Adobe lists email address, phone number, ECID and CRM ID as common identity fields. The alternative is the identityMap field, a map of namespaces to identity values. Adobe notes its main drawback: the values are nested and can be harder to use in tools that expect top-level identity fields.

What you can and cannot change later

Supported changesBreaking changes (not supported)
Adding new fieldsRemoving previously defined fields
Making a required field optionalRenaming or redefining existing fields
Changing the display name and descriptionRemoving or restricting previously supported field values
Enabling the schema for ProfileMoving existing fields to a different place in the tree
Deleting the schema, or disabling it from Profile

Adobe says a breaking change is possible only while the schema has not been used to ingest data and has not been enabled for Real-Time Customer Profile. Also, Experience Platform does not accept null or empty values: if there is no value, leave the key out of the payload.

A page view in XDM, using fields from the Web Details field group (the shape the Web SDK snippet builder writes)

{
  "eventType": "web.webpagedetails.pageViews",
  "web": {
    "webPageDetails": {
      "name": "Home",
      "pageViews": { "value": 1 }
    }
  }
}

How to plan a schema

  1. Name the real-world thing the schema describes: a person, or something that happens.
  2. Pick the class to match: XDM Individual Profile for a record, XDM ExperienceEvent for events.
  3. Add Adobe's standard field groups that cover your data, such as Web Details and Commerce Details.
  4. Create your own field group only for what the standard ones do not cover.
  5. Decide which fields are identities, and which one is primary if the schema will feed Real-Time Customer Profile.
  6. Review it before the first data arrives; after that, changes can only add.

Related tools and pages on this site

Questions

Should identities be fields or an identityMap?

Both work. Adobe says identityMap suits a variable number of identities and is required with the Experience Platform Mobile SDK, but its nested values can be harder to use in tools that expect top-level identity fields.

Can a schema have no field groups?

Yes. Adobe says a schema is a class and zero or more field groups.

Can I delete a field I added by mistake?

Only if the schema has not yet been used to ingest data and is not enabled for Profile. After that, Adobe enforces additive changes only.

Do we need an XDM schema to move from Adobe Analytics?

Adobe's upgrade steps for Customer Journey Analytics include planning the schema architecture and creating a custom schema. Our readiness check maps each Analytics variable to an XDM path as a starting point.

Sources

Facts about Adobe's products on this page are from the linked Adobe pages, read on the date shown beside each. Explanations, steps and examples are ours unless marked as Adobe's. If Adobe's page and this one differ, Adobe's page is right.

Surge Migrate is not affiliated with Adobe and claims no Adobe partner status. Adobe product names are trademarks of Adobe.

Surge Migrate

Moving the website itself

This page answers one Adobe Experience Platform question. Surge Migrate moves a website from any CMS to any CMS. Converted automatically. Checked before you install.

  1. 1

    Scan

    Names the system behind your site, counts pages and templates, lists the blocks to build and the work no tool does, and gives an effort range with its working.

    Scan a site →
  2. 2

    Convert

    Each page becomes an Edge Delivery document, an AEM Core Component page and import files for 7 other systems. 10 pages free; 500 or 2,000 pages in one paid run.

    Convert your pages →
  3. 3

    Verify

    A download is offered only when its own format check passes. The report lists every field not found and every component kept as plain content. Compare old and new pages side by side.

    Parity check →
  4. 4

    Install

    You import with the target system's own tool, on your own environment. Each download's README gives the command. Your system changes only when you run it.

    How each import was tested →