Skip to main content

Creating a data relationship

Archived

3 Tasks

15 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 mayor of myTown asks you, the town projects manager, to enable residents who report problems online to enter contact information and list any previous issues at the same site. You must add the necessary data relationship to the Service Request application.

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

Role User name Password
Application Developer author@mytown pega123!

Challenge Walkthrough

Detailed Tasks

1 Create the Submitter information data relationship

  1. In the App Studio navigation pane, click Case types > Service Request to display the Service Request case life cycle.
  2. In the Service Request case type, click the Identify submitter step to open the Step properties pane on the right.
  3. In the Step properties pane, click Configure view to configure the view of the step.
  4. In the view configuration dialog box, on the Fields tab, click Add field to add a field to the Identify submitter view.
  5. In the field configuration window, in the Field name field, enter Submitter information to name the field.
  6. In the Type list, select Data relationship.
  7. In the Target type list, select Define new data object.
  8. In the Data object name field, enter Submitter information to name the data object, and then click OK.
  9. Click Submit to close the field configuration window.
  10. In the Options list, to the right of View, select Create default view.  
    Create default view
  11. Click Open to create fields within the Submitter information data relationship.
  12. Click Add field.
  13. In the Field name field, enter Submitter First Name. The Type list defaults to Text (single line).
  14. Create three additional fields by using the information in the following table.

    Field Name

    Field Type

    Submitter Last Name

    Text (single line)

    Submitter Address

    Text (paragraph)

    Submitter Phone Number

    Phone

    Note: The address is captured in one Text (paragraph) field to keep this challenge brief. In a real-world application, an address is captured in separate fields, such as street, city, state/province, and ZIP/postal code to automate data analysis in the application.
  15. Click Submit to dismiss the view configuration dialog box.
  16. In the upper right, click Save to save your work.

2 Create the Previous issues at this location multiple record data relationship

  1. In the Service Request case type, click the Identify location step.
  2. In the Step property pane to the right, click Configure view to configure the view of the step.
  3. In the view configuration dialog box, on the Fields tab, click Add field.
  4. In the field configuration window, in the Field name field, enter Previous issues at this location to name the field.
  5. In the Type list, select Data relationship.
    Add data relationship
  6. In the Target type list, select Define new data object.
  7. In the Data object name field, enter Previous issues at this location to name the data object.
  8. In the Options list, select Multiple records.
  9. Click Submit to close the field configuration window.
  10. In the view configuration dialog box, click Add field to Previous issues at this location > Add new field to add a new field to the Previous issues at this location data relationship.
  11. In the field configuration window, in the Field name field, enter Date to name the first field.
  12. In the Type list, select Date only.
  13. Click Submit & add another.
  14. Use the following image to add the remaining fields.
    Previous issues example
  15. To the right of the blank row, click the Delete icon to remove the row.
  16. Click Submit to dismiss the view configuration dialog box.
  17. Click Save to save your work.

3 Confirm your work (section not graded)

  1. In the Service Request case type, click the Data model tab to confirm that your fields are displayed correctly.
    Data model page
  2. In the Options column, click Previous issues at this location to see the data relationship details.
    Previous issues at this location data model
  3. In the upper left, click the Back to previous page icon to return to the case life cycle. 
  4. Click the Data Model tab to return to the Service Request data model.
  5. In the Options column, click Submitter information to see the data relationship details.
    Submitter information data model
  6. In the upper left, click the Back to previous page icon to return to the Workflow tab.
  7. In the upper right, click Save and run.
  8. In the Report problem view, click Continue to advance to the Identify location view.
  9. In the Identify location step, enter an address in the Address field and several issues to the Previous issues at this location fields.
    Previous issues example
  10. Click Continue.
  11. In the Identify submitter step, enter submitter information details.
    Submitter information example


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