Skip to main content

Loading actions and treatments from file

Archived

4 Tasks

10 mins

Visible to: All users
Beginner
Pega Customer Decision Hub 8.4
Pega Marketing 8.4
English
This content is now archived and is no longer updated. Progress is not calculated. Pega Cloud instances are disabled, and badges are no longer awarded. Click here to continue your progress in the latest version.

Scenario

U+ Bank recently completed a pilot project to show an offer, the Standard credit card, to all customers who log in to their account page on the website.

The business team now wants to introduce three more credit card offers and corresponding treatments. The intention is to show different offers to different customers depending on various business rules.

The business team has provided the list of actions and treatments in a CSV file.

Use the following credentials to log in to the exercise system:

Role User name Password
Decisioning Administrator CDHAnalyst rules
Caution: In this mission, challenges are built on top of each other. Hence when you click on Initialize Pega or Reset Instance in this challenge, you first need to complete the previous challenge(s).

Your assignment consists of the following tasks:

Task 1: Download the file, Exercise Artifacts and extract the files

Download the Exercise Artifacts file, and then extract Sales_CreditCards.csv and Web_Treatments.csv to a local drive on your computer.

Task 2: Import the new treatments from the file Web_Treatments.csv

Import the new treatments (that correspond to the new actions) from Web_Treatments.csv to Pega Customer Decision Hub.

Task 3: Import the new actions

Import the new actions from Sales_CreditCards.csv to Customer Decision Hub.

Task 4: Map the treatments to the corresponding actions

Map the treatments to the corresponding actions.

Action Treatment
Premier Rewards card Premier Rewards card tile
Rewards Plus card Rewards Plus card tile
Rewards card Rewards card tile

 

Challenge Walkthrough

Detailed Tasks

1 Download the file, Exercise Artifacts and extract the files

  1. Download the Exercise Artifacts file and extract the two files, Sales_CreditCards.csv and Web_Treatments.csv to a local drive on your computer.

2 Import the new treatments from the file Web_Treatments.csv

  1. Log in as a Decisioning Analyst with user name CDHAnalyst and password rules.
  2. In the navigation pane on the left, click Content > Treatments.
  3. On the Treatments landing page, click the Web tab.
  4. On the Web tab, click Manage treatments to manage the web treatments.
    Manage treatments
  5. In Decision Data: Web Treatments, click Check out to enable adding and deletion of web treatments.
    Check out
Note: For Business as Usual (BAU), it is recommended to add treatment by treatment without checking out the entire treatment Decision Data Record (DDR). Checking out a treatment can negatively impact other business users who are working on individual treatments. Also, it can lead to mistakes such as overriding previous user changes due to Import/Export functionality. Use the Check out action only when the business is OK to block other user's treatment work.
  1. Click Import to import the web treatments in bulk.
    Import treatments
  2. In the Import data window, click Choose File, and then select the Web_Treatments.csv file from your local drive.
Note: The file that you import must contain all existing treatments (in this case, Web_Treatments.csv). When you import a treatments file, the new data overwrites all previous treatments. In case the existing treatments are not a part of the import file, then those treatments get deleted while importing the new treatments.
  1. Click Load to load the web treatments from the file.
    Load treatments from file
  2. In the review message, notice that three records were added and one was modified, and then click Import to confirm the import of the treatments. 
    Import treatments
Note: If you encounter errors during the import of the .csv files, check your regional settings at. On Windows, go to Region > Additional settings > List separator. On Mac, go to System Preferences > Language & Region > Advanced. Make sure there is a comma in the List separator. Alternatively, replace the ',' (commas) in the file with ';'.
  1. Notice that there are now four web treatments in total.
    Imported treatments
  2. At the top, click Check in to save the changes to Decision Data: WebTreatments.
    Treatments check in
  3. Enter a suitable check-in comment when prompted. For example, imported 3 new Treatments.
  4. Close Decision Data: Web Treatments.
  5. On the Treatments landing page, click the refresh icon to see the new treatments.
    Refresh treatments
    Added treatments

3 Import the new actions

  1. In the navigation pane on the left, navigate to Content > Actions.
  2. On the Actions landing page, in the upper-right corner, click Create > Actions from file.
    Actions from file
  3. In the Create actions from file window, in the Issue / Group drop-down, select Sales / CreditCards.
  4. Click Select File, and then select Sales_CreditCards.csv file from your local drive.
  5. Click Import to import the actions from the file.
    Import actions
  6. In the Summary, notice that four actions were added or updated, and then click Finish to confirm the import of the actions.
    finish
  7. On the Actions landing page, set the filter condition to Sales / CreditCards, and then click View to view the newly imported actions.
    View newly imported actions
  8. Verify that there are four actions.
    Newly added actions

4 Map the treatments to the corresponding actions

  1. On the Actions landing page, click Premier Rewards card to open the offer.
  2. In the Premier Rewards card offer, click Check out to make changes.
  3. Click the Treatments tab to map the new treatment.
  4. In the Treatments tab, click Add channel > Web to add a new treatment.
    Add web treatment
  5. In the Configure Web Treatment window, in the Premier Rewards card tile row, click Add.
    Select a web treatment
  6. Click Apply to confirm the treatment selection.
  7. In the action, click Check in to save changes to the action. Provide a suitable comment when prompted and confirm. For example, added web treatment.
  8. Repeat steps 1 - 7 to map the corresponding treatments for Rewards Plus card and Rewards card actions. Use the following table for mapping information. 
    Action Treatment
    Premier Rewards card Premier Rewards card tile
    Rewards Plus card Rewards Plus card tile
    Rewards card Rewards card tile


Available in the following mission:

We'd prefer it if you saw us at our best.

Pega Academy has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice