Skip to main content

Challenge

Adding data records to a data object

This content has been updated. Click here to continue your progress on the latest version.

Scenario

When submitting a service request through the MyTown311 application, residents enter information about the issue. The mayor and the services coordinator want residents to select the issue type from a preexisting list so that the request can be automatically associated with a department. Create a data object for the request type with records for Type, Description, and Department, and reference the data object in the Report Problem step.

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

Role User name Password
Application Developer author@mytown pega123!

Challenge Walkthrough

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

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

Detailed Tasks

1 Add a new field to the Request type data object

  1. In the App Studio navigation pane, click Data > Data objects and integrations to display the data objects in MyTown 311.
  2. Click Request type to open the Request type data object.
    Note: The Request type data object is preconfigured for this challenge.
    data-type-and-integrations-request-type
  3. In the Data model tab, click Add field to add a new field row to the list.
  4. In the new Name field, enter Department.
    Leave the default Text (single line) option in the Type drop-down. 
    request type data type fields
  5. Click Save to save your new field.

2 Add records to the Request type data object

  1. In the Request type data object, click the Records tab to display a table that uses the Request type fields as the table headers.
  2. Below No items, click Add record to add a new record to the data object.
    request-type-data-type-add-record
  3. In the Type field, enter Park maintenance.
  4. In the Description field, enter Damaged or broken park or playground equipment.
  5. In the Department field, enter Parks and Recreation.
  6. Using the information from the following table, repeat steps 2-5 to add three more records to the data object.
    Type Description Department
    Pothole Pothole in public parking lot or road Public Works
    Road debris Downed trees, power lines, or other traffic impediments Public Works
    Traffic signal Traffic signal not working properly Traffic Management
  7. Click Save to complete adding records to the Request type data object.
    save-request-type-data-type-records

3 Add the Request type data object to the Report problem step

  1. In the App Studio navigation pane, click Case types > Service Request to display the Service Request case life cycle.
  2. Click the Report problem step.
  3. From the configuration pane on the right, click Configure view to display the Report problem view window.
  4. To the right of the Request field group row, click the Trash can icon to delete the row.
    report-problem-request-type-field-group-delete
  5. In the left pane of the window, click Data objects to display available data objects.
    report-problem-view-configuration-data-types_0
  6. Hover over Request type and click the Plus icon to add the data object to the view. In the pane, a green checkmark is displayed next to Request type.
    report-problem-request-type-data-type_0
  7. Under the Options field, in the View field, select Create new view.
  8. Click Submit to close the Report problem view configuration window.
    submit request type data reference
  9. Click Save to commit changes to the Service Request case type.

4 Confirm your work (section not graded)

  1. From the Service Request case type, in the upper right, click Save and run to create a new service request case.
  2. Complete any required fields and advance the case to the Create view.
  3. In the Create view, complete any required fields before advancing the case to the Report problem step.
    request type view
  4. Under Request type, from the Type drop-down, select Park maintenance to populate the Type, Description, and Department fields with request information.
    request type park maintenance selection
  5. Repeat step 4 for each option in the Type drop-down and confirm the values change for each selection.


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?

33% 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