The following example demonstrates a workflow that updates the database using the purchasing data in a file. The purchasing data contains data referencing elements from other dimensions, such as the client emails and product codes.
The Transactions and Products resources used in this example do not exist in the Adobe Campaign database by default. They were therefore created beforehand using the Custom resources function. The profiles that correspond to the email addresses in the imported file, as well as the products, were loaded into the database beforehand.
The workflow is made up of the following activities:
A Load file activity, which loads and detects the data of the file to import. The imported file contains the following data:
date;client;product 2015-05-19 09:00:00;email@example.com;ZZ1 2015-05-19 09:01:00;firstname.lastname@example.org;ZZ2 2015-05-19 09:01:01;email@example.com;ZZ2 2015-05-19 09:01:02;firstname.lastname@example.org;ZZ2 2015-05-19 09:02:00;email@example.com;ZZ3 2015-05-19 09:03:00;firstname.lastname@example.org;ZZ4 2015-05-19 09:04:00;email@example.com;ZZ5 2015-05-19 09:05:00;firstname.lastname@example.org;ZZ7 2015-05-19 09:06:00;email@example.com;ZZ6
A Reconciliation activity to bind purchasing data to database profiles as well as products. It is therefore necessary to define a relation between the file data and the profile table as well as the product table. This configuration is carried out in the activity’s Relations tab:
Columns are added to the inbound data in order to reference the foreign keys of the linked dimensions.
An Update data activity allows you to define the database fields to update using the imported data. As the data was already identified as belonging to the Transactions dimension in the previous activity, here you can use the Directly using the targeting dimension identification option.
By using the option that automatically detects fields to update, the links configured in the previous activity (to profiles and products) are added to the list of Fields to update. You must also make sure that the field that corresponds to the transaction date is correctly added to this list.