[Limited Availability]{class="badge informative"}

Use Adobe Experience Platform data in journeys datalookup

On this page: Learn how to use the Dataset lookup activity to dynamically retrieve data from Adobe Experience Platform record datasets at runtime and enrich your journeys with external data for personalization and decision-making.

The Dataset lookup activity allows you to dynamically retrieve data from Adobe Experience Platform record datasets during runtime. By leveraging this capability, you can access data that may not reside in the profile or event payload, ensuring your customer interactions are both relevant and timely.

AVAILABILITY
This feature is currently available to all customers as a limited availability release.

Key Benefits:

  • Real-Time personalization: Tailor customer experiences using enriched data.
  • Dynamic decision-making: Use external data to drive journey logic and actions.
  • Enhanced data access: Retrieve product metadata, pricing tables, or relational data tied to specific keys.

Must-read must-read

Review these requirements before you configure dataset lookups.

Dataset enablement

The dataset must be enabled for lookup in Adobe Experience Platform. Detailed information is available in this section: Use Adobe Experience Platform data.

Limits & restrictions

  • Maximum of 10 Dataset Lookup activities per journey.
  • Maximum of 20 selected fields.
  • Maximum of 50 keys in the lookup keys array.
  • Enriched data size is limited to 10KB.

Additional performance considerations

The below recommendations are guidance to avoid delays in deliverability:

Consideration
Recommended limit
Description
Attributes per Lookup
Up to 20
Number of data fields retrieved per record in a single lookup activity.
Lookup Activities
Up to 5 per journey
Each journey can contain up to 5 separate lookup activities. Each lookup can target a different dataset.

Configure the Dataset lookup activity configure

To configure the Dataset lookup activity, follow these steps:

  1. Unfold the Orchestration category and drop a Dataset lookup activity into your canvas.

    Adobe Experience Platform dataset lookup activity in journey

  2. Add a label and description.

  3. In the Dataset field, select the dataset with the attributes you need.

    note
    NOTE
    If the dataset you are looking for does not display in the list, make sure you have enabled it for lookup. For more details, refer to the Must read section.
  4. Select the specific fields you want to fetch from the dataset.

    • You can only select leaf nodes (fields at the lowest level of the schema). The field must be a primitive value (string, number, boolean, date, etc.).

    • Lists (arrays) and maps (key–value objects) cannot be selected.

    accordion
    Example
    Dataset field selection showing primitive data types and structure
  5. In the Lookup key(s) field, choose a joining key that exists in both the decision item attributes and the dataset. This key is used by the system to search in the selected dataset.

    • Keys can be expressions derived from the journey context, such as SKUs, email IDs, or other identifiers. Example: @profile.email or list(@event{purchase_event.products.sku}).

    • Only strings or lists of strings are supported.

    note important
    IMPORTANT
    You must define the lookup key using Advanced mode so the Dataset lookup activity’s output is available as a context attribute downstream. If @datasetLookup{} returns a “Dataset lookup not found” error in a condition, see Dataset lookup not found error in condition activity for the cause and fix.
    Configure the lookup key and use its result in separate expression editors:
    1. Configure the key: In the Dataset lookup activity’s Lookup key(s) expression editor, switch to Advanced mode, define the key, and save the activity. This makes the lookup context available to downstream activities.

    2. Use the result: In the condition’s expression editor, switch to Advanced mode and reference the lookup output, for example: @datasetLookup{MyDatasetLookUpActivity1.entities}. Replace MyDatasetLookUpActivity1 with the name of your Dataset lookup activity.

    If the lookup output is unavailable downstream, confirm that the key is defined in Advanced mode and that the Dataset lookup activity is saved.
    accordion
    Example
    Expression editor with dataset field lookup and string functions

Use enriched data in the journey

The data retrieved by the Dataset lookup activity is stored in the Journey context as an array of objects. It is available in the journey expression editor and personalization editor, enabling conditional logic and personalized messaging based on enriched data.

  • Journey Expression Editor:

    Access the Advanced mode editor and use the syntax: @datasetLookup{MyDatasetLookUpActivity1.entities}. Learn how to work with the advanced expression editor

  • Personalization Editor:

    Use the syntax: {{context.journey.datasetLookup.1482319411.entities}}.

NOTE
Enriched data is transient and available only during the runtime of the journey, and in the personalization of outbound activities (Email, Push, Mobile message, etc.).

Examples of use cases

Product Category-Based Filtering

Scenario: Send a coupon to users who spend more than $40 on household products.

Journey flow:

  1. Purchase Event: Capture SKUs from the user’s cart.

  2. Dataset lookup activity:

    • Dataset: products-dataset (SKU as the primary key).
    • Lookup Keys: list(@event{purchase_event.products.sku}).
    • Fields to Return: ["SKU", "category", "price"].
  3. Condition activity:

    • Filter SKUs where the category is “household”.

      code language-none
      @event{purchase_event.products.all( in(currentEventField.sku, @datasetlookup{MyDatasetLookupActivity1.entities.all(currentDatasetLookupField.category == 'household').sku} ) )}
      

    OR

    • Aggregate the total spend on household products and compare it to the $40 threshold.

      code language-none
      sum(@event{purchase_event.products.all( in(currentEventField.sku, @datasetlookup{MyDatasetLookUpActivity1.entities.all(currentDatasetLookupField.category == 'household').sku} ) )}.price}, ',', true ) > 40
      
  4. Personalization Editor:

    Use the enriched data to personalize the email content:

    code language-none
    {% let householdTotal = 0 %}
    {{#each journey.datasetlookup.3709000.entities as |product|}}
    {%#if get(product, "category") = "household"%}
    {% let householdTotal = householdTotal + product.price %}{%/if%}
    {{/each}}
    "Hi, thanks for spending " + {%= householdTotal %} + " on household products. Here is your reward!"
    
Personalization using external loyalty data

Scenario: Identify which email account for a profile has a Loyalty Status of Platinum. In this scenario, the loyalty account is associated to an email ID and loyalty data is not available in the standard profile lookup store.

Journey flow:

  1. Profile Event Trigger: Capture email IDs from the profile or event context.

  2. Dataset Lookup activity:

    • Dataset: loyalty-member-dataset (email as the primary key).
    • Lookup Keys: @profile.email.
    • Fields to Return: ["email", "loyaltyTier"].
  3. Condition activity:

    Branch the journey based on the loyalty tier:

    code language-none
    @datasetLookup{MyDatasetLookUpActivity1.entity.loyaltyMember.loyaltyTier} == 'Platinum'
    
  4. Personalization Editor:

    Use the enriched loyalty tier data to personalize outbound communication:

    code language-none
    {{context.journey.datasetLookup.1482319411.entity.loyaltyMember.loyaltyTier}}
    

Troubleshooting troubleshooting

“Dataset lookup not found” error in condition activity troubleshooting-not-found

Symptom: The @datasetLookup{} syntax in a condition activity’s advanced expression editor returns a “Dataset lookup not found” error, even though the dataset lookup activity is correctly configured in the journey.

Cause: The lookup key in the dataset lookup activity was set using simple mode. When the key is not defined in advanced mode, the activity output is not exposed as a context attribute in downstream activities.

Fix: Open the dataset lookup activity, locate the Lookup key(s) field, and switch to advanced mode to redefine the key expression. Save the activity and republish the journey.

AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: The page explains how to configure the Dataset lookup activity in a journey and use the enriched data it retrieves for personalization and decision-making.

Intents:

  • Review the requirements (dataset enablement, limits and restrictions, performance considerations) before configuring dataset lookups.
  • Add a Dataset lookup activity to a journey and configure its dataset, the fields to fetch and the lookup key.
  • Use the enriched data in the journey expression editor and the personalization editor for conditional logic and personalized messaging.
  • Follow the two examples of use cases: Product Category-Based Filtering and Personalization using external loyalty data.
  • Fix the “Dataset lookup not found” error in a condition activity.

Glossary:

  • Dataset lookup activity (product-specific): An activity, available in the Orchestration category, that dynamically retrieves data from Adobe Experience Platform record datasets during runtime, with which you can access data that may not reside in the profile or event payload.
  • Lookup key(s) (product-specific): The field of the Dataset lookup activity in which you choose a joining key that exists in both the decision item attributes and the dataset; the system uses this key to search in the selected dataset. Keys can be expressions derived from the journey context, such as SKUs, email IDs, or other identifiers, for example @profile.email or list(@event{purchase_event.products.sku}).
  • Enriched data (product-specific): The data retrieved by the Dataset lookup activity, stored in the Journey context as an array of objects.
  • Leaf nodes: Fields at the lowest level of the schema.

Guardrails:

  • Maximum of 10 Dataset Lookup activities per journey (hard limit).
  • Maximum of 20 selected fields (hard limit).
  • Maximum of 50 keys in the lookup keys array (hard limit).
  • Enriched data size is limited to 10KB.
  • Lookup Activities: up to 5 per journey (recommended), as guidance to avoid delays in deliverability; each lookup can target a different dataset.
  • Attributes per Lookup (number of data fields retrieved per record in a single lookup activity): up to 20 (recommended), as guidance to avoid delays in deliverability.
  • When selecting the fields to fetch from the dataset, you can only select leaf nodes, and the field must be a primitive value (string, number, boolean, date, etc.).
  • When selecting the fields to fetch from the dataset, lists (arrays) and maps (key–value objects) cannot be selected.
  • In the Lookup key(s) field, only strings or lists of strings are supported.
  • You must define the lookup key using Advanced mode so the Dataset lookup activity’s output is available as a context attribute downstream.
  • Enriched data is transient and available only during the runtime of the journey, and in the personalization of Action activities with an outbound channel selected (Email, Push, Mobile message, etc.).

Prerequisites and permissions:

  • The dataset must be enabled for lookup in Adobe Experience Platform.

Terminology:

  • Canonical name: Dataset lookup activity — variants: Dataset Lookup activity, lookup activity
  • Canonical name: Adobe Experience Platform — Acronym: AEP — variants: Platform

FAQ:

  • What should I do if the dataset I am looking for does not display in the list of the Dataset field? Make sure you have enabled it for lookup in Adobe Experience Platform.
  • How do I reference the Dataset lookup output in a condition? Configure the lookup key and use its result in separate expression editors: in the condition’s expression editor, switch to Advanced mode and reference the lookup output, for example @datasetLookup{MyDatasetLookUpActivity1.entities}, replacing MyDatasetLookUpActivity1 with the name of your Dataset lookup activity.
  • Which syntax do I use for enriched data in the personalization editor? Use the syntax {{context.journey.datasetLookup.1482319411.entities}}.
  • What should I check if the lookup output is unavailable downstream? Confirm that the key is defined in Advanced mode and that the Dataset lookup activity is saved.
  • What is the availability of the Dataset lookup activity? It is currently available to all customers as a limited availability release.
  • What are the key benefits of the Dataset lookup activity? Real-Time personalization (tailor customer experiences using enriched data), Dynamic decision-making (use external data to drive journey logic and actions) and Enhanced data access (retrieve product metadata, pricing tables, or relational data tied to specific keys).

Troubleshooting:

  • “Dataset lookup not found” error in condition activity: Symptom: the @datasetLookup{} syntax in a condition activity’s advanced expression editor returns a “Dataset lookup not found” error, even though the Dataset lookup activity is correctly configured in the journey. Cause: the lookup key in the Dataset lookup activity was set using simple mode; when the key is not defined in Advanced mode, the activity output is not exposed as a context attribute in downstream activities. Fix: open the Dataset lookup activity, locate the Lookup key(s) field, and switch to Advanced mode to redefine the key expression; save the activity and republish the journey.

Examples:

  • Product Category-Based Filtering: Scenario: send a coupon to users who spend more than $40 on household products. Journey flow: Purchase Event (capture SKUs from the user’s cart); Dataset lookup activity (dataset products-dataset with SKU as the primary key, lookup keys list(@event{purchase_event.products.sku}), fields to return ["SKU", "category", "price"]); Condition activity (filter SKUs where the category is “household”, or aggregate the total spend on household products and compare it to the $40 threshold); Personalization Editor (use the enriched data to personalize the email content).
  • Personalization using external loyalty data: Scenario: identify which email account for a profile has a Loyalty Status of Platinum, when the loyalty account is associated with an email ID and loyalty data is not available in the standard profile lookup store. Journey flow: Profile Event Trigger (capture email IDs from the profile or event context); Dataset Lookup activity (dataset loyalty-member-dataset with email as the primary key, lookup keys @profile.email, fields to return ["email", "loyaltyTier"]); Condition activity (branch the journey based on the loyalty tier with @datasetLookup{MyDatasetLookUpActivity1.entity.loyaltyMember.loyaltyTier} == 'Platinum'); Personalization Editor (use the enriched loyalty tier data to personalize outbound communication with {{context.journey.datasetLookup.1482319411.entity.loyaltyMember.loyaltyTier}}).

Related pages:

Personas:

  • marketer: Can drop a Dataset lookup activity from the Orchestration category into the canvas and select a dataset in the Dataset field. Can select only leaf nodes with a primitive value as fields to fetch, not lists (arrays) or maps (key–value objects). Can choose the lookup key in the Lookup key(s) field, where it must be defined in Advanced mode so the output is available downstream. Can use only strings or lists of strings as lookup keys, for example @profile.email or list(@event{purchase_event.products.sku}). Can use the enriched data in the Advanced mode of the journey expression editor with @datasetLookup{MyDatasetLookUpActivity1.entities} and in the personalization editor with {{context.journey.datasetLookup.1482319411.entities}}. The page states that a maximum of 10 Dataset Lookup activities per journey is the hard limit, and up to 5 per journey is recommended. Where: “Configure the Dataset lookup activity”.

Onboarding:

  • Level: Intermediate
  • First minimal step: Unfold the Orchestration category and drop a Dataset lookup activity into your canvas.
  • Success check: The lookup context is available to downstream activities, and a condition in Advanced mode can reference the output, for example @datasetLookup{MyDatasetLookUpActivity1.entities}.
  • Previous: Before configuring dataset lookups, for detailed information on enabling the dataset for lookup in Adobe Experience Platform: Use Adobe Experience Platform data
  • Next: When accessing the Advanced mode editor to use enriched data in the journey expression editor: Learn how to work with the advanced expression editor
recommendation-more-help
journey-optimizer-help