Loading customer segment members by email address with the Data Load utility
You can create a customer segment that business users can manage in the Marketing tool by loading a list of email addresses.
About this task
The MemberGroupMemberMediator
business object mediator is enhanced so that you
can load a CSV input file that includes only a list of email addresses. Load the input file to
create a customer segment or add members to an existing customer segment. For example, if customer
segments need to be merged, you can combine the email addresses for the customers in those segments
and then load the email addresses.
As a best practice, load the customer segment member data in your production environment to ensure that the member data in the database is up-to-date. By loading the data in the production environment, you can also ensure that the members have a registered customer role in the store organization. If you want to copy a customer segment from your production environment to your staging environment, use the customer segment copy utility. For more information, see Copying customer segments from the production environment to the staging environment.
If you want to load members into a customer segment or create a customer segment in an extended site store, ensure that the members have a registered customer role in the store organization. If you want to load the customer segment members into an asset store, ensure that the user has a customer role in one of the extended site store organizations. When the Data Load utility checks the registered customer role for a store organization, the utility checks all of the parent stores in the organization hierarchy.
Procedure
-
Create the input file for loading your customer segment data.
-
Create the Data Load utility configuration files that you need to load your member group member
data.
- Optional:
Open the business object configuration file
(wc-loader-customer-segment-email.xml) for editing and configure the settings
for loading your customer segment data.
- Open the data load environment configuration file (wc-dataload-env.xml) for editing and update the configured settings to match your environment settings.
-
Open the data load order configuration file
(wc-dataload.xml) for editing and configure the settings to load your customer
segment data.
-
In the
<_config:DataLoadEnvironment>
element, ensure that the value of theconfigFile
attribute identifies the environment configuration file. If the file is not in the same directory as the data load order configuration file, include the relative path to the file. -
In the
<_config:LoadItem>
element, ensure that the value for thename
attribute isCustomerSegmentEmail
and that the value for thebusinessObjectConfigFile
attribute identifies the business object configuration file. If the file is not in the same directory as the data load order configuration file, include the relative path to the file. -
In the
<_config:DataSourceLocation>
element, ensure that the value of thelocation
attribute identifies the input XML file that you are loading. If the file is not in the same directory as the data load order configuration file, include the relative path to the file. - Save and close the configuration file.
-
In the
- Run the Data Load utility.
-
Verify that the customer segment data is loaded by reviewing the data load summary
report.
For more information about the location and contents of this summary report, see Verifying the results of the data load.
- You can also verify that the customer segment data is loaded by comparing the contents of your input file with the customer segment data in your HCL Commerce database. Ensure that the data within your input file exists within the appropriate database tables.
- If you created a customer segment, verify that you can view the newly loaded customer segment in the Marketing tool.