Creating your customer class
To support loading customer data, create a customer class that extends the base customer class and has as its only key the property that you identified in Defining the customer class. The default customer class key is CustomerID.
- In the Dev Studio header search text field, enter PegaMarketingFS-Data-Customer. From the results, select the PegaMarketingFS-Data-Customer class.
- Click Save as.
- Enter the name for the new customer class, and then click Create and
open.
For example: MyCo-Data-Customer - In the Keys section, ensure that only the correct key property
is listed. The default customer class key is CustomerID.
- In the Class inheritance section, select the Find by name first (Pattern) check box, and then as the parent class, enter PegaMarketingFS-Data-Customer.
- On the External Mapping tab of the class rule, specify the
properties available on the customer record and their backing columns in the customer
table. Ensure that these mappings satisfy the following guidelines:
- The column name does not exceed 27 characters
- The property name starts with a period
- The table contains no empty rows
Important: Ensure that the following properties are mapped in the customer class: CustomerID (class key) the correct customer class key, PartitionKey (if partitioning is enabled), pyEmail1 (used by outbound email), and pyMobilePhone (used by outbound SMS). - Click Save.
Previous topic Configuring the customer class Next topic Mapping a customer class to a database table