Skip to main content

Creating a data relationship

2 Tasks

15 mins

Visible to: All users
Beginner
Pega Platform 8.7
Data Integration
English

Scenario

The mayor of MyTown asks you, the town project manager, to enable residents who report problems online to enter contact information and list any previous issues at the same site. You need to add an embedded data field to the Service Request case type.

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

Role User name Password
Application Developer author@mytown pega123!

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 Create the Embedded data field named Submitter information

  1. In the navigation pane of App Studio, 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 Embedded data.
  7. In the Data object list, select the Person data object.
    Submitter information data object creation
  8. Click Submit to close the field configuration window.
  9. Click Submit to dismiss the view configuration dialog box.
  10. In the upper right, click Save to save your work.

2 Create the Embedded data list named Previous issues at this location

  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 Embedded data.
  6. In the Data object list, select Define new data object.
  7. In the Data object name field, enter Issues to name the data object. 
  8. Click OK to close the dialog box.
  9. In the Options field, select List of records.
  10. Click Submit to close the field configuration window.
  11. In the Fields tab, click Add field to Previous issues at this location > Add new field to add a new field to the data relationship.
  12. In the field configuration window, in the Field name field, enter Date to name the first field.
  13. In the Type list, select Date only.
  14. Click Submit & add another.
  15. Create two additional fields by using the information in the following table.
    Field Name Field Type
    Issue Text (single line) 
    Is resolved Boolean
  16. Click Submit.
  17. To the right of the blank row, click the Delete icon to remove the row.

    Issue data relationship

  18. Click Submit to dismiss the view configuration dialog box.
  19. In the upper right, click Save to save your work.

Confirm your work

  1. In the Service Request case type, click the Data model tab to confirm that your fields are displayed correctly.
    The Service Request data model with added fields of Previous issues at this location and Submitter information.
  2. In the Options column, click Issues to see the data object details.
    The Issues data object with the added fields Date, Is resolved, and Issue

     

  3. In the upper left, click the Back to previous page icon to return to the case life cycle. 
    Highlighting the back button on the from the Issue data object page.
  4. Click the Data model tab to return to the Service Request data model.
  5. In the Options column, click Person to see the data object details.
    The Person data object.
  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 view, enter an address in the Address field.
  10. In the Identify location view, click Add item to add several issues to the Previous issues at this location fields.
    Previous issues at location section with values selected
  11. Click Continue.
  12. In the Identify submitter view, enter submitter information details.
    Submitter information example

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?

25% found this content useful

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