Configuring the DataSet-Execute method for Interaction History

You can automate data management operations on records that are defined by the Interaction History data set by using the DataSet-Execute method. You can perform these operations programmatically, instead of doing them manually.

  1. Create an activity rule from the navigation panel, by clicking Records > Technical > Activity > Create, to start the DataSet-Execute method.
  2. Click the activity Steps tab.
  3. In the Method field, enter DataSet-Execute.
  4. In the Step page field, specify the step page on which the method operates, or leave this field blank to use the primary page of this activity.
  5. Optional: Enter a description for the method.
  6. Click the Arrow icon to the left of the Method field to expand the Method Parameters section.
  7. In the Data Set field, enter pxInteractionHistory.
    Note: The Interaction History data set is a default, internal data set that belongs to the Data-pxStrategyResult class. Only one instance of this data set exists on the Pega Platform.
  8. In the Operation list, select the type of operation. Depending on the type of operation, specify additional settings:
    • To specify the Save operation, go to step 9.
    • To specify the Browse operation, go to step 10.
    • To specify the Browse by keys operation, go to step 11.
  9. Save records passed by a page or data transform in the Interaction History data store by performing the following action:
    1. Select the Save list of pages defined in a named page check box to save the list of pages from an existing Code-Pega-List page.
  10. Read records from the Interaction History data store by performing the following actions:
    1. In the Maximum number of records to read field, enter a value to define the threshold for stopping the browse operation. You can also define this value through an expression.
    2. In the Store results in field, define the result page. The result page consists of an existing Code-Pega-List page.
  11. Read records from the Interaction History data store by a key by performing the following actions:
    1. Select a key and enter the key value. You can also define the key value through an expression.
    2. Optional: To define more than one key, click Add key.
    3. In the Store results in field, define a clipboard page to contain the results of this operation.