Skip to main content

Saving data to a system of record

3 Tasks

10 mins

Visible to: All users
Beginner
Pega Platform '23
Data Integration
English
Verify the version tags to ensure you are consuming the intended content or, complete the latest version.

Scenario

The program manager for the roadside assistance service wants to provide users with an option to enroll when requesting service rather than automatically rejecting unenrolled users. Configure the Approval Rejection Process to update the membership status of a customer record if the customer decides to enroll in the roadside assistance program. Create a Data Transform to copy the updated membership status and coverage level to the customer record. Then, add the Data Transform and a Save Data Page Step to the Approval Rejection Process to update the customer record in the database.

The following table provides the credentials you need to complete the challenge.

Role User name Password
Application Developer author@gogoroad pega123!
Note:  Your practice environment may support the completion of multiple challenges. As a result, the configuration shown in the challenge walkthrough may not match your environment exactly.

You must initiate your own Pega instance to complete this Challenge.

Initialization may take up to 5 minutes so please be patient.

Challenge Walkthrough

Detailed Tasks

1 Update the CustomerID property to source data from a savable Data Page

  1. In the Pega instance for the challenge, enter the following credentials:
    1. In the User name field, enter author@gogoroad.
    2. In the Password field, enter pega123!.
  2. In the navigation pane of Dev Studio, click App to open the App Explorer.
  3. Click AssistanceRequest > Data Model > Property to expand the list of all the properties defined for the Assistance Request Case Type.
  4. Click CustomerID to open the property record for the CustomerID property.
  5. On the property record, in the Data access section, select the Copy data from a Data Page option to source the property by copying data from the data source, rather than referring to the data source when the property is referenced in a Case.
  6. In the Data Page field, select D_CustomerSavable to source the property by using the default savable Data Page rather than the default read-only Data Page.
    CustomerID property configured to source from a savable data page
  7. Click Save to update the property configuration.

2 Create a Data Transform to update the CustomerID page

  1. In the App Explorer, right-click on Data Transform, and then select Create to open the Create Data Transform form.
  2. On the Create Data Transform form, in the Label field, enter Update customer enrollment.
  3. Accept the remaining default selections, and then click Create and open to configure the Data Transform.
  4. Configure the UpdateCustomerEnrollment Data Transform.
    1. In the first row, keep the default Action value as Set.
    2. In the Target field, enter or select .CustomerID.Enrollment.
    3. In the Source field, enter or select true.
    4. Click the Add icon to add a row to the data transform.
    5. Keep the default Action value as Set.
    6. In the Target field, enter or select .CustomerID.CoverageLevel.
    7. In the Source field, enter or select .CoverageLevelElected.
      Update customer enrollment data transform configured to copy updated fields to the CustomerID page
  5. Click Save to save the Data Transform.

3 Configure the Approval Rejection flow to update the Customer record

  1. In the navigation pane of Dev Studio, click Case Types to open the Case Type Explorer.
  2. In the Case Type Explorer, click Assistance Request to open the Assistance Request Case Type.
  3. In the Approval Rejection Process, click Configure Process.
  4. Add a Save Data Page Automation to the Process.
    1. Click Add a flow shape > Automations > Save Data Page to add a Save Data Page Automation to the flow.
      page-automation
    2. With the Save Data Page Automation selected, in the properties pane, select the Use associated property check box.
    3. In the Autopopulate Property Name field, enter or select .CustomerID to identify the property for the current customer record, which identifies the savable Data Page.
      Save data page automation configured to reference the data page associated with the customer record
    4. Click and drag the Collect enrollment information connector to the Save Data Page Automation.
    5. Hover over the Save Data Page Automation and drag a connector to the Change to Service Stage Step.
  5. Click Save to save your changes to the Approval Rejection Process.
  6. Click Open Process to open the flow Rule for the Approval Rejection Process.
  7. Add the UpdateCustomerEnrollment Data Transform to the Process.
    1. Right-click the Collect enrollment information connector to display a menu of options for the connector.
    2. From the menu, click View Properties to open the Connector properties dialog box.
    3. In Connector properties dialog box, in the Set properties section, select Apply Data Transform to display the Data Transform field.
    4. In the Data Transform field, enter UpdateCustomerEnrollment.
      Set properties section of the Collect enrollment information connector properties
    5. Click Submit to complete the configuration of the connector.
      Approval Rejection process configured to save customer records
  8. Click Save to save your changes to the Approval Rejection Process.

Confirm your work

  1. In the navigation pane of Dev Studio, click Data types.
  2. To the right of the Customer data type, click the Record icon to open the records of the Customer data type.
    records-icon-data-type
  3. For testing, identify a Customer record that is unenrolled.
    table to identify a customer record
  4. In the header of Dev Studio, click Create > New > Assistance Request to create an Assistance Request Case.
  5. Advance to the Enter customer information View.
  6. In the Enter customer information View, select the Account ID of the unenrolled customer you identified.
    An assistance request case for an unenrolled user
  7. Advance the Case past the Enter payment information Step to display the Prompt for enrollment View.
  8. In the Prompt for enrollment View, select Yes, I want to enroll, then click Submit.
  9. In the Collect enrollment information View, select either coverage level, then click Submit.
  10. Click the GoGo-GoGoRoad-Data-Customer tab to return to the list of Customer records.
  11. Click Actions > Refresh to refresh the information.
  12. Verify the customer is enrolled with the coverage level you selected.
    customer-table

This Challenge is to practice what you learned in the following Module:


Available in the following missions:

If you are having problems with your training, please review the Pega Academy Support FAQs.

Did you find this content helpful?

Want to help us improve this content?

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