Permissions required
In the Configure Permissions lesson, you set up all the access controls required to complete this lesson.
Enable schemas for Real-Time Customer Profile using Platform user interface
Let’s start with the simple task of enabling a schema:
-
In the Platform user interface, open the Luma Loyalty Schema
-
In Schema Properties, toggle the Profile switch
-
In the confirmation modal, press the Enable button to confirm
-
Select the Save button to save your changes
IMPORTANT
Once a schema is enabled for Profile, it cannot be disabled or deleted. Also, fields cannot be removed from the schema after this point. These implications are important to keep in mind later on when you are working with your own data in your Production environment. You should be using a development sandbox in this tutorial, which can be deleted at any time.In the controlled environment of this tutorial, you will enable your schemas and datasets for profile, before ingesting any data. When working with your own data, we recommend you do things in the following order:- First, ingest some data into your datasets.
- Address any issues that arise during the data ingestion process (for example, data validation or mapping issues).
- Enable your datasets and schemas for Profile
- Reingest the data
Easy right? Repeat the steps above for these other schema:
- Luma Product Catalog Schema
- Luma Offline Purchase Events Schema
- Luma Web Events Schema (on the confirmation modal, check the box “Data for this schema will contain a primary identity in the identityMap field.”)
Enable schemas for Real-Time Customer Profile using Platform API
Now, it’s time to enable the Luma CRM Schema
with the API. If you want to skip this exercise and just enable it in the user interface, go right ahead.
Get the meta:altId of the schema
First let’s get the meta:altId
of the Luma CRM Schema
:
- Open Postman
- If you don’t have an access token, open the request OAuth: Request Access Token and select Send to request a new access token, just like you did in the Postman lesson.
- Open the request Schema Registry API > Schemas > Retrieve a list of schemas within the specified container.
- Select the Send button
- You should get a 200 response
- Look in the response for the
Luma CRM Schema
item and copy themeta:altId
value
Enable the schema
Now that we have the meta:altId of the schema, we can enable it for profile:
-
Open the request Schema Registry API > Schemas > Update one or more attributes of a custom schema specified by ID.
-
In the Params paste your
meta:altId
value as theSCHEMA_ID
param value -
In the Body tab, paste the following code
[{ "op": "add", "path": "/meta:immutableTags", "value": ["union"] }]
-
Select the Send button
-
You should get a 200 response
You should be able to see in the user interface that all five schemas are enabled for Profile (you might need to SHIFT-Reload to see that Luma CRM Schema
is enabled):
Enable datasets for Real-Time Customer Profile using Platform user interface
The datasets must be enabled for Profile, too, and the process is even simpler:
-
In the Platform user interface, open the
Luma Loyalty Dataset
-
Toggle the Profile switch
-
In the confirmation modal, press the Enable button to confirm
Repeat the steps above for these other datasets:
- Luma Product Catalog Dataset
- Luma Offline Purchase Events Dataset
- Luma Web Events Dataset
Enable datasets for Real-Time Customer Profile using Platform API
Now you will enable a dataset for Profile using the API. Again, if you want to enable it via the user interface using the method above, that’s fine, too.
Get the id of the dataset
First we need to get the id
of the Luma CRM Dataset
:
- Open Postman
- If you don’t have an access token, open the request OAuth: Request Access Token and select Send to request a new access token, just like you did in the Postman lesson.
- Open the request Catalog Service API > Datasets > Retrieve a list of datasets.
- Select the Send button
- You should get a 200 response
- Look in the response for the
Luma CRM Dataset
item and copy the id:
Enable the dataset
Now that we have the id of the dataset, we can enable it for profile:
-
Open the request Catalog Service API > Datasets > Update one or more attributes of a dataset specified by ID.
-
In the Params update the
DATASET_ID
value to your own -
In the Body tab, paste the following code. Note that the first two values are pre-existing tags that are visible in the previous response. They need to be included in the body, in addition to the two new tags which we are adding:
{ "tags":{ "adobe/pqs/table":["luma_crm_dataset"], "adobe/siphon/table/format":["parquet"], "unifiedProfile":["enabled:true"], "unifiedIdentity":["enabled:true"] } }
-
Select the Send button
-
You should get a 200 response
You can also confirm that the user interface shows the dataset enabled:
Additional Resources
Data Engineers should continue to the Subscribe to data ingestion events lesson.
Data Architects can skip ahead and go to the batch ingestion lesson.
Experience Platform
- Data Architect and Engineer Tutorial
- 1. Configure permissions
- 2. Create a sandbox
- 3. Set up Developer Console and Postman
- 4. Model data in schemas
- 5. Map identities
- 6. Create datasets
- 7. Enable profiles
- 8. Subscribe to data ingestion events
- 9. Ingest batch data
- 10. Ingest streaming data
- 11. Create merge policies
- 12. Apply data governance framework
- 13. Run queries
- 14. Build segments
- Conclusion