Skip to main content


Creating your customer class

Suggest edit Updated on September 21, 2021

To support loading customer data, create a customer class that extends the base customer class.

  1. Define your customer class.
    1. Define a name for the customer class.
      For more information, see Creating classes.
    2. Identify the customer class key. The default key property is CustomerID.
    3. Identify the ruleset for the customer class.For example: <your-application>-Rules
    4. Identify the associated entities (for example, PurchaseData) for this customer class.
  2. In the Dev Studio header search text field, enter PegaMKT-Data-Customer. From the results, select the PegaMKT-Data-Customer class.
  3. Click Save as.
  4. Enter the name for the new customer class, and then click Create and open.For example: MyCo-Data-Customer
  5. In the Keys section, ensure that only the correct key property is listed.
    The default customer class key is CustomerID.
  6. In the Class inheritance section, select the Find by name first (Pattern) check box, and then as the parent class, enter PegaMKT-Data-Customer.
  7. 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 table contains no empty rows
  8. Click Save.
    • Next topic Mapping a customer class to a database table
    Did you find this content helpful? YesNo

    Have a question? Get answers now.

    Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

    Ready to crush complexity?

    Experience the benefits of Pega Community when you log in.

    We'd prefer it if you saw us at our best. is not optimized for Internet Explorer. For the optimal experience, please use:

    Close Deprecation Notice
    Contact us