DocumentationJourney Optimizerpersonalizing-offers-with-real-time-weather-data

Set Up XDM Schema, Dataset and Datastream in AEP

Last update: June 18, 2025
  • Topics:
  • Audiences

CREATED FOR:

  • Beginner
  • User

Create XDM Schema

To use the Adobe Experience Platform Web SDK (Alloy.js) on a web page, AEP Tags must be associated with a Datastream that is mapped to an XDM Event Schema. The Web SDK (alloy.sendEvent) sends data into AEP as Experience Events, which must conform to an XDM schema based on the XDM ExperienceEvent class.

To create an XDM schema

  • Log in to Adobe Experience Platform

  • Navigate to Data Management -> Schemas -> Create schema

  • Create an XDM event based schema called Weather-Schema. If you are not familiar with creating a schema, please follow this documentation

  • Make sure that the schema has the following fields with appropriate data type.

weather-schema

Create a Dataset Based on the Schema

A dataset in Adobe Experience Platform (AEP) is a structured storage container used to ingest, store, and activate data based on a defined XDM schema.

  • Navigate to Data Management -> Datasets -> Create dataset
  • Create a dataset called Weather-schema-dataset based on the XDM schema(Weather-Schema) created in the previous step.

Create a Datastream

A datastream in Adobe Experience Platform is like a secure pipeline (or highway) that connects your website or app to Adobe services, allowing data to flow in and personalized content to flow back.

  • Navigate to Data Collection > Datastreams, then click New Datastream. Name the datastream weather-related-datastream

  • Provide the following details as shown in the screenshot below
    datastream

  • Click Save, then click on Add Mapping and add the Adobe Experience Platform service and the event Dataset with appropriate check boxes selected
    datastream-mapping

  • Save the datastream.

recommendation-more-help
16b83d7f-5421-40be-9bc1-46f08359ee52