Skip to main content

Creating a new, DX-compliant service request type

3 Tasks

20 mins

Pega Customer Service 8.7
Visible to: All users
Advanced Pega Customer Service 8.7 English

Scenario

U+ Insurance wants one of its regional teams to start submitting E-bill registration service requests in their homegrown React-based CRM application. As a Customer Service Application Administrator, you have been tasked with creating a DX-compliant case type in the Pega Customer Service application. As part of the service request CSRs must collect customer confirmation of registering for e-bills, and once registration is confirmed, an option to collect alternate email addresses should be presented to the CSR.

Use the following credentials to log in to the exercise system:

Role User name Password
Customer Service Application Administrator CSIAppAdmin install12345!
CSR BillCarter install12345!

Your assignment consists of the following tasks:

Task 1: Create a new case type – Register for e-bill.

In App Studio, create the Register for e-bill case type based on the Customer Service Generic Template.

Task 2: Add the required fields to the Capture Case Input view.

In App Studio, add the Contact details page to the Capture Case Input view. Configure the page to display the Primary email property. Next, add a Boolean field for confirming e-bill registration and a text input field to capture alternate email. Lastly, turn off the Allow duplicate search case processing option for the new service request type.

Task 3: Add conditional visibility to the secondary email text input field.

Because visibility expressions are not supported in V1 APIs, conditional visibility must be defined using a when rule. In Dev Studio, configure a when rule that validates whether the customer has confirmed their e-bill registration. Define the secondary email input field as visible only once the when rule is set to true. Lastly, add an action set to the Boolean field and configure it to refresh the entire section every time the field is clicked.

Task 4: Confirm your work.

Run the Register for e-bill service request instance in the React application and ensure that the Capture Case Input view is displayed correctly.

 

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 a new case type – Register for e-bill

  1. On the exercise system landing page, click Pega CRM suite to log in to App Studio.
  2. Log in as a Customer Service for Insurance Administrator, with User name CSIAppAdmin and Password install12345!
  3. In App Studio, click Case types to open the Case Type Explorer.
  4. Click New to start creating a new case type.
  5. In the Case type name field, enter Register for e-bill.
  6. Click Case Template to expand the section.
  7. Select Customer Service Generic Template from the Template list.
  8. Click Next.

2 Add the required fields to the Capture Case Details view

  1. In the Register for e-bill case life cycle view, in the Intake stage, hover over the Capture case details process and click the Configure process icon.
    Configure process
  2. In the process flow diagram, click the plus icon on the Capture Case Details subprocess shape.
  3. Select the Capture Case Details assignment shape.
  4. On the General tab on the right, click Configure View.
  5. In the search field, enter: Contact details.
  6. In the Search results, click the Add icon to add the Contact details data page to the view.
    Add contact details
  7. In the View row, click Open to create a new view within the added data page.
  8. In the View name field, enter Primary email and then click Create.
  9. In the primary email view, remove all the page properties by clicking the Remove icons next to them.
  10. In the search bar, enter Primary email and then click the Add icon next to the respective field to add the property to the view.
  11. In the Primary email row, click the Options drop-down menu and select Read-only.
  12. In the Fields tab on the Primary email view, click the Capture case input link to go back to the respective view.
    Back to capture case input

    You have added a page property to the newly created view. Bear in mind that using temporary pages with the DX API is not recommended.
  13. Click Add field.
  14. In the Field name, enter E-bill registration.
  15. In the Type list, select Boolean.
  16. Click Submit.
  17. In the Search field, enter Alternate email.
  18. In the Search results, click the Add icon next to the Alternate email field.
  19. Click Submit.
    Capture case input
  20. Click Settings.
    Case Type settings
  21. In the Settings tab, click Case processing options.
  22. In the Case processing options menu, in the Allow duplicate search row, click More > Override default value.
  23. In the Update setting value dialog box, uncheck the Allow duplicate search option and click Submit.
    Disable duplicate search
  24. Click Save.

3 Add conditional visibility to the secondary email text input field

  1. Click the Switch Studio drop-down and select Dev Studio.
  2. In the navigation pane of Dev Studio, click App.
  3. On the Classes tab, in the search field, enter PegaCPMI-Work-Service-RegisterForEbill.
  4. Within the selected class, click Process > Flow Action > CaptureCaseInput.
  5. On the Flow Action Configuration page, on the Layout tab, next to the Section field, click the Open icon to open the CaptureCaseInput section.
  6. Click Check out to start editing the section rule.
  7. On the Section Configuration page, on the Design tab, hover over the Alternate email address field and click the Edit icon.
    Edit alternate email address field
  8. In the Cell Properties dialog box, in the Visibility list, select Condition (when rule).
    Visibility set to condition when rule

    For conditional visibility, make sure to always use when rules and not expressions.Visibility expressions are not DX-compliant and will not render properly in a React application.
  9. Next to the Condition for visibility field, click the Open icon to start configuring a new when rule.
  10. On the When Record Configuration page, in the Label field, enter Is e-bill registration acknowledged.
  11. Click Create and open.
  12. On the When Rule Configuration page, on the Conditions tab, in the property list, select E-bill registration.
  13. In the comparator list, select is true.
    Set conditions
  14. Click Save.
  15. Click the CaptureCaseInput tab to go back to the Section Configuration page you opened in step 5.
  16. In the Cell Properties dialog box, in the Conditions for visibility field, enter Isebillregistrationacknowledged to select the newly created when rule.
    Condition for visibility
  17. Click Submit.
  18. On the Design tab, hover over the E-bill registration field and click Edit.
    Edit e-bill registration field
  19. In the Cell Properties dialog box, click the Actions tab.
  20. Click Create an action set.
  21. In Action set 1, click Add an event > Click.
  22. Click Add an action > Display: Refresh.
    Configuring action set
  23. Click Submit.
  24. Click Save.
  25. Click Check in.
  26. In the Check-in comments field, enter Visibility conditions configured and then click Check in.

Confirm your work

  1. On the exercise system landing page, click MyCRM to log in to the React application.
  2. Log in as a Customer Service Representative with User name BillCarter and Password install12345!
  3. On the MyCRM landing page, on the Pega Cases tab, select Register for E-bill to initiate the service request.
  4. On the Collect Details view, ensure that the Primary email address field is displayed.
  5. Check the E-bill registration option. Ensure that upon selecting the option, the Alternate email input field is made visible.


Available in the following mission:

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