[Eingeschränkte Verfügbarkeit]{class="badge informative"}
Verwenden von Adobe Experience Platform-Daten für die Personalisierung aep-data
Auf dieser Seite: Erfahren Sie, wie Sie mit der Hilfsfunktion „datasetLookup“ im Personalisierungseditor Felder aus Adobe Experience Platform-Eintragsdatensätzen abrufen und Ihre Inhalte personalisieren können.
Mit Journey Optimizer können Sie Daten aus Adobe Experience Platform-Eintragsdatensätzen im Personalisierungseditor nutzen, um Ihre Inhalte zu personalisieren. Bevor Sie beginnen, müssen für die Lookup-Personalisierung erforderliche Datensätze zunächst für Lookup aktiviert werden. Detaillierte Informationen finden Sie in diesem Abschnitt: Verwenden von Adobe Experience Platform-Daten.
Nachdem ein Datensatz für die Personalisierung der Suche aktiviert wurde, können Sie seine Daten nutzen, um Ihre Inhalte in Journey Optimizer zu personalisieren.
-
Öffnen Sie den Personalisierungseditor, der in allen Kontexten verfügbar ist, in denen Sie Personalisierungen definieren können, z. B. Nachrichten. Erfahren Sie, wie Sie mit dem Personalisierungseditor arbeiten
-
Navigieren Sie zur Liste der Hilfsfunktionen und fügen Sie die Hilfsfunktion datasetLookup in den Code-Bereich ein.
-
Diese Funktion bietet eine vordefinierte Syntax, mit der Sie Felder aus Ihren Adobe Experience Platform-Datensätzen aufrufen können. Es gilt folgende Syntax:
code language-none {{datasetLookup datasetId="datasetId" id="key" result="store" required=false}}-
datasetId ist die ID des Datensatzes, mit dem Sie arbeiten.
-
id ist die ID der Quellspalte, die mit der primären Identität des Lookup-Datensatzes verbunden werden soll.
note NOTE Der für dieses Feld eingegebene Wert kann entweder eine Feld-ID ( profile.packages.packageSKU), ein in einem Journey-Ereignis übergebenes Feld (context.journey.events.event_ID.productSKU) oder ein statischer Wert (sku007653) sein. In jedem Fall verwendet das System den Wert und durchsucht den Datensatz, um zu überprüfen, ob er mit einem Schlüssel übereinstimmt.Wenn Sie einen Zeichenfolgenwert in Textform für den Schlüssel verwenden, lassen Sie den Text in Anführungszeichen stehen. Beispiel: {{datasetLookup datasetId="datasetId" id="SKU1234" result="store" required=false}}. Wenn Sie einen Attributwert als dynamischen Schlüssel verwenden, entfernen Sie die Anführungszeichen. Beispiel:{{datasetLookup datasetId="datasetId" id=category.product.SKU result="SKU" required=false}} -
result ist ein beliebiger Name, den Sie angeben müssen, um auf alle Feldwerte zu verweisen, die Sie aus dem Datensatz abrufen wollen. Dieser Wert wird in Ihrem Code verwendet, um jedes Feld aufzurufen.
-
required=false: Wenn „required“ auf „TRUE“ gesetzt ist, wird die Nachricht nur gesendet, wenn ein übereinstimmender Schlüssel gefunden wird. Wenn der Wert auf „false“ gesetzt ist, ist kein übereinstimmender Schlüssel erforderlich, um die Nachricht zuzustellen. Beachten Sie, dass bei Festlegung auf „false“ empfohlen wird, Fallback- oder Standardwerte in Ihrem Nachrichteninhalt zu berücksichtigen.
accordion Wo kann ich eine Datensatz-ID abrufen? Datensatz-IDs können in der Benutzeroberfläche von Adobe Experience Platform abgerufen werden. In der Adobe Experience Platform-Dokumentation erfahren Sie, wie Sie mit Datensätzen arbeiten.
-
-
Passen Sie die Syntax an Ihre Anforderungen an. In diesem Beispiel möchten wir Daten zu Passagierflügen abrufen. Es gilt folgende Syntax:
code language-none {{datasetLookup datasetId="1234567890abcdtId" id=profile.upcomingFlightId result="flight"}}- Wir arbeiten mit dem Datensatz, dessen ID „1234567890abcdtId“ lautet.
- Das Feld, das wir für einen Join mit dem Lookup-Datensatz verwenden möchten, ist profile.upcomingFlightId,
- Wir möchten alle Feldwerte unter der Referenz „flight“ einbeziehen.
-
Nachdem die im Adobe Experience Platform-Datensatz aufzurufende Syntax konfiguriert wurde, können Sie angeben, welche Felder Sie abrufen möchten. Es gilt folgende Syntax:
code language-none {{result.fieldId}}note NOTE Stellen Sie bei Verweisen auf ein Datensatzfeld sicher, dass der Verweis mit dem vollständigen Feldpfad, der im Schema definiert ist, übereinstimmt. Es gibt keine festen Beschränkungen für die Anzahl der Felder, die mit der Hilfsfunktion abgerufen werden können. Um eine optimale Leistung zu erzielen, wird jedoch empfohlen, die Anzahl der Felder unter 50 zu halten, um eine Beeinträchtigung des Durchsatzes zu vermeiden. -
result ist der Wert, den Sie dem Parameter result in der Hilfsfunktion datasetLookup zugewiesen haben. In diesem Beispiel ist es „flight“.
-
fieldID ist die ID des Feldes, das Sie abrufen möchten. Diese ID ist in der Benutzeroberfläche von Adobe Experience Platform sichtbar, wenn Sie das Eintragschema durchsuchen, das mit Ihrem Datensatz verknüpft ist:
accordion Wo kann ich eine Feld-ID abrufen? Feld-IDs können bei der Vorschau eines Datensatzes in der Benutzeroberfläche von Adobe Experience Platform abgerufen werden. In der Adobe Experience Platform-Dokumentation erfahren Sie, wie Sie eine Vorschau von Datensätzen anzeigen.
In diesem Beispiel möchten wir Informationen über die Einstiegszeit und den Flugsteig der Fluggäste verwenden. Wir fügen daher die beiden folgenden Zeilen hinzu:
{{flight._myorg.booking.boardingTime}}{{flight._myorg.booking.gate}}
-
-
Da Ihr nun Code fertig ist, können Sie Ihren Inhalt wie gewohnt abschließen und ihn mit einer der beiden Simulationsmethoden testen: Klicken Sie auf Inhalte simulieren, um Inhaltsvarianten mit Beispieleingabedaten oder automatischer KI-Generierung zu testen, oder klicken Sie auf Inhalte simulieren und wählen Sie dann Inhalte simulieren (AEP-Profile) aus dem Dropdown-Menü aus, um eine Vorschau mit Testprofilen anzuzeigen. Erfahren Sie, wie Sie Inhalte in der Vorschau anzeigen und testen können
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: Use the datasetLookup helper function in the personalization editor to retrieve fields from Adobe Experience Platform record datasets that are enabled for lookup, and use those fields to personalize your content in Journey Optimizer.
Intents:
- Add the datasetLookup helper function from the helper functions list to the code pane of the personalization editor.
- Configure the datasetLookup syntax with a dataset ID, a lookup key, a result name and the required setting.
- Use a profile field, a field passed in a journey event, or a static value as the lookup key.
- Retrieve individual dataset fields in your content with the
{{result.fieldId}}syntax. - Find a dataset ID and a field ID in the Adobe Experience Platform user interface.
- Test the personalized content with Simulate content or Simulate content (AEP profiles).
Glossary:
- datasetLookup helper function (product-specific): A helper function of the personalization editor that provides a predefined syntax to call fields from Adobe Experience Platform datasets:
{{datasetLookup datasetId="datasetId" id="key" result="store" required=false}}. - datasetId: The ID of the dataset you are working with. Dataset IDs can be retrieved in the Adobe Experience Platform user interface.
- id: The ID of the source column that should be joined with the primary identity of the lookup dataset. The value can be a field ID (
profile.packages.packageSKU), a field passed in a journey event (context.journey.events.event_ID.productSKU), or a static value (sku007653). In any case, the system uses the value and looks into the dataset to check if it matches a key. - result: An arbitrary name that you provide to reference all the field values you retrieve from the dataset. This value is used in your code to call each field.
- required: If required is set to TRUE, the message is only delivered if a matching key is found. If required is set to false, a matching key is not required and the message can still be delivered.
- fieldId: The ID of the field you want to retrieve, used in
{{result.fieldId}}. This ID is visible in the Adobe Experience Platform user interface when browsing the record schema related to your dataset, and field IDs can be retrieved when previewing a dataset in the Adobe Experience Platform user interface. When referencing a dataset field, make sure that you match the full field path as defined within the schema. - Simulate content: A simulation method to test content variations with sample input data or AI auto-generation.
- Simulate content (AEP profiles): A simulation method, selected from the Simulate content dropdown, to preview content with test profiles.
Guardrails:
- The feature is currently available to all customers as a limited availability release.
- There are no hard limits on the number of fields that can be pulled using the datasetLookup helper function. For best performance, keep the number of fields under 50 (recommended) to avoid impacting throughput.
Prerequisites and permissions:
- Datasets needed for lookup personalization must first be enabled for lookup.
Terminology:
- Canonical name: Adobe Experience Platform — Acronym: AEP — variants: Platform
FAQ:
- Where is the personalization editor available? In every context where you can define personalization, such as messages.
- What values can be used for the id parameter? A field ID (for example
profile.packages.packageSKU), a field passed in a journey event (for examplecontext.journey.events.event_ID.productSKU), or a static value (for examplesku007653). - When should the key be written in quotes? If using a literal string value for the key, keep the text in quotes, for example
{{datasetLookup datasetId="datasetId" id="SKU1234" result="store" required=false}}. If using an attribute value as a dynamic key, remove the quotes, for example{{datasetLookup datasetId="datasetId" id=category.product.SKU result="SKU" required=false}}. - What happens if no matching key is found? If required is set to TRUE, the message is only delivered if a matching key is found. If required is set to false, the message can still be delivered.
- How do I call a field retrieved from the dataset? Use
{{result.fieldId}}, where result is the value assigned to the result parameter in the datasetLookup helper function and fieldId is the ID of the field you want to retrieve. - Is there a limit on the number of fields I can retrieve? There are no hard limits. For best performance, it is recommended to keep the number of fields under 50 to avoid impacting throughput.
Examples:
- Retrieve data related to passengers’ flights from the dataset whose ID is “1234567890abcdtId”, joining on the field profile.upcomingFlightId and including all the field values under the “flight” reference:
{{datasetLookup datasetId="1234567890abcdtId" id=profile.upcomingFlightId result="flight"}}. - Use the passengers’ boarding time and gate from the “flight” reference:
{{flight._myorg.booking.boardingTime}}and{{flight._myorg.booking.gate}}.
Best practices:
- If required is set to false, it is recommended that you account for fallback or default values in your message content.
Related pages:
- To personalize your content: personalize your content
- To enable datasets for lookup personalization: Use Adobe Experience Platform data
- To work with the personalization editor: Learn how to work with the personalization editor
- To preview and test your content: Learn how to preview and test content
Personas:
- developer: Can add the datasetLookup helper function to the code pane of the personalization editor. Can set the datasetId, id, result and required parameters of the datasetLookup syntax. Can use a field ID, a field passed in a journey event, or a static value as the id. Can call each retrieved field with
{{result.fieldId}}, using the value assigned to the result parameter. The page states that there are no hard limits on the number of fields, but it is recommended to keep the number of fields under 50. Where: “Use Adobe Experience Platform data for personalization”.
Onboarding:
- Level: Intermediate
- First minimal step: Open the personalization editor and add the datasetLookup helper function from the helper functions list to the code pane.
- Previous: Before starting, datasets needed for lookup personalization must first be enabled for lookup: Use Adobe Experience Platform data