A short guide on importing data to a Data Type in Pega

I recently went through a process of importing data to a Data Type - here is a quick guide :backhand_index_pointing_down:

  • Pega is equipped with a handy Data Import wizard allowing easily to import records to a Data Type
  • possible Wizard’s transactions include:
    • INSERT or UPDATE rows
    • only INSERT rows
    • TRUNCATE rows (no rollback possible)
  • the wizard supports the migration of data
  • to access the Data Import wizard:
    • from the Data types pane select the Data type that you want to import to
    • navigate to the Records tab
  • for TRUNCATE you need to provide pyGUIDs of rows to be deleted
  • this guide describes the INSERT or UPDATE rows option
    • all activities were performed in the Pega Trail environment in a cloud

Obtain the template

  • using a template for an import ensures no additional mapping between source fields and target properties is required
  • to export the template:

Prepare the import file

  • now, you can populate the template with records
  • in case you need to match existing records (INSERT or TRUNCATE)
    • ensure that you provide matching records (e.g. pyGUID)
  • for INSERT

Start the import

Thanks for sharing this information @jedrb!

I’ve added the Developer Knowledge Share tag to your post!

@jedrb If the table is in CustomerData schema, how I can add individual instances of the data type in the product rule?

  1. RAP rule - ‘Class instances to include’ option does not allow ‘Report definition’ filter for ‘external Class’

  2. RAP rule - ‘Individual instances to include’ option does not display the instances as pzInsKey is not available.

Does that mean we cannot package individual instances for data types in CustomerData?

Thanks.