Adding an Action to the Customer Dashboard

You can use VB Studio to add custom actions to the Secondary Actions menu on the Customer Dashboard screen, available in CX for Utilities Agent Service.

Figure 14-5 Add Custom Action


This figure shows an example of where you can add a custom action on the Secondary Action menu.

You can add these types of actions:

  • Open URL action

  • Navigate to page action

This example shows how to add either an open URL action or a navigate to page action to the button.

This example assumes that the reader is familiar with the Customer Dashboard and understands how to use Visual Builder. For additional information, see:

Example: Adding a Custom Action to the Customer Dashboard

  1. Log into CX for Utilities Agent Service as an administrator.

  2. Click the menu at the top right of the page and select Edit Page in Visual Builder Studio.

  3. Select your workspace and click Select. Note that you can also create a new workspace if needed.

  4. In the App UIs panel, expand Oracle Utilities Advanced Care UI application and then navigate to main, then customer-dashboard, and then select customer-dashboard-start.

  5. Select the Event and for cutomerDashboardSecondaryActionEvent create an event listener and select an action chain which will implement your custom functionalities.
  6. In the App UIs panel, expand Oracle Utilities Advanced Care UI application and then select e11y-user-action-template fragment in the Fragments submenu.
  7. Select the Variables sub-tab to display the constants and variables.

  8. Click on the USER_ACTION_CONTEXT_LIST constant.

  9. On the right side of the screen, enter the configuration for your action type in the Default Value field.

    Figure 14-6 Example Configuration


    This screen shows an example of the configuration.

  10. In the App UIs panel, expand Oracle Utilities Advanced Care UI application and then again expand main, then select customer-dashboard-start from the customer-dashboard sub-menu.

  11. Select the Variables sub-tab to display the constants and variables.
  12. Click on the USER_ACTION_UI_CUSTOMER_DASHBOARD_MORE_ACTIONS constant.

  13. On the right side of the screen, enter the same ID strings which were passed on the USER_ACTION_CONTEXT_LIST of e11y-user- action-template fragment.

    Example code:

    [
        {
            "id": "ACTION_CUSTOM_EVENT",
            "label": "Custom Event",
            "active": true,
            "context": {
                "type": "CustomEvent",
                "eventId": "page:cutomerDashboardSecondaryActionEvent",
                "eventData": {
                    "eventType": "CUSTOM"
                }
            }
        }
    ]
    
  14. Preview your changes to verify that they look as you expected. This will launch a new tab with the Customer Dashboard. Navigate to Secondary Action Menu and check for your extended user action

  15. When your changes are ready for use, complete the steps to publish your changes to your production environment.