Skip to main content

Saving data to a system of record

Archived

4 Tasks

10 mins

Visible to: All users
Beginner Pega Platform 8.5 Data Integration 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

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.

Challenge Walkthrough

Detailed Tasks

1 Update the CustomerID property to source data from a savable data page

  1. In the navigation pane of Dev Studio, click App to open the App Explorer.
  2. Click AssistanceRequest > Data Model > Property to expand the list of all the properties defined for the Assistance Request case type.
  3. Click CustomerID to open the property record for the CustomerID property.
  4. 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.
  5. 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
  6. 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.
      Add Save data page automation to the Process Modeler
    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.

4 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.
    Record icon for the Customer data type
  3. For testing, identify a Customer record that is unenrolled.
    Customer data records
  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 data records updated with new enrollment and coverage level


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