Test profiles are required when using the test mode in a journey. To learn how to use the test mode, refer to this section.
There are different ways to create a test profile in Adobe Experience Platform. In this documentation, we focus on two methods: uploading a csv file and using API calls. You can also upload a json file in a dataset, refer to the Data Ingestion documentation.
These import methods also allow you to update profile attributes. This way, you can turn an existing profile into a test profile. Simply use a similar file or API call and only include the “testProfile” field with the value “true”.
Creating a test profile is similar to creating regular profiles in Adobe Experience Platform. For more information, refer to the Real-time Customer Profile documentation.
In order to be able to create profiles, you first need to create a schema and a dataset in Adobe Experience Platform.
First, you need to create a schema. Follow these steps:
For more information on schema creation, refer to the XDM documentation.
Then you need to create the dataset in which the profiles will be imported. Follow these steps:
For more information on dataset creation, refer to the Catalog Service documentation.
In Adobe Experience Platform, you can create profiles by uploading a csv file containing the different profile fields into your dataset. This is the easiest method.
Your test profiles are added and can now be used when testing a journey. Refer to this section.
For more information on csv imports, refer to the Data Ingestion documentation.
You can also create test profiles via API calls. See this page.
You must use a Profile schema that contains the “Profile test details” mixin. The testProfile flag is part of this mixin.
When creating a profile, make sure you pass the value: testProfile = true.
Note that you can also update an existing profile to change its testProfile flag to “true”.
Here is an example of an API call to create a test profile:
curl -X POST \
'https://dcs.adobedc.net/collection/xxxxxxxxxxxxxx' \
-H 'Cache-Control: no-cache' \
-H 'Content-Type: application/json' \
-H 'Postman-Token: xxxxx' \
-H 'cache-control: no-cache' \
-H 'x-api-key: xxxxx' \
-H 'x-gw-ims-org-id: xxxxx' \
-d '{
"header": {
"msgType": "xdmEntityCreate",
"msgId": "xxxxx",
"msgVersion": "xxxxx",
"xactionid":"xxxxx",
"datasetId": "xxxxx",
"imsOrgId": "xxxxx",
"source": {
"name": "Postman"
},
"schemaRef": {
"id": "https://example.adobe.com/mobile/schemas/xxxxx",
"contentType": "application/vnd.adobe.xed-full+json;version=1"
}
},
"body": {
"xdmMeta": {
"schemaRef": {
"contentType": "application/vnd.adobe.xed-full+json;version=1"
}
},
"xdmEntity": {
"_id": "xxxxx",
"_mobile":{
"ECID": "xxxxx"
},
"testProfile":true
}
}
}'