Having enabled Insights for Customer Service in UIKit, I’m now keen to display Insights in Dashboards and on the Home page if possible. Can this be achieved?
@Eloise a really good question! I had the same when tackling this about a year ago at a CS UI Kit client. Some details below to help you do this. Apologies for the image quality I no longer have the originals so lose something in the copy and paste.
Important caveats
I should note two important things
- I documented this in the '23 timeframe, so its possible things might have changed slightly since then.
- This is not officially mentioned in PegaDocs so you might have issues with Pega Support if you raise an incident
Enabling Constellation version of dashboards
Dashboards are a standard Pega feature, allowing users to see a collection of reports. There are two versions of this feature:
- UI Kit - shows developer created widgets in a dashboard capability
- Constellation - allows creation of multiple dashboards, collating different Insights created using the Explore Data (self service) capability.
The below details how to enable the Constellation Version.
Summary
You only need to change 2 rules to get this working, AND create a Data-Portal Dashboard for this - following exactly the same approach for getting Explore Data landing page enabled:
- pzDataExplorer harness rule
- ExploreDataNavigation navigation rule
- pyDefault (CPM-Portal) data transform to set context for launching view
Detailed Steps
Setup the Portal Context
- Create a new property in CPM-Portal class, as we will be using this like InsightsActivityParams in step 22 above pyDefault (CPM-Portal) data transform. E.g Create a property name, C11nDashboardActivityParams
- Update the pyDefault (CPM-Portal) data transform to set context for launching view.
- Add a new line under this, to setup D_CPMPortalContext.C11nDashboardActivityParams
- Setup your PageName and View Rule Name
- ViewRuleName should be pyDashboardsManager
- PageName can be any pagename you like, ensuring you use this in your harness rule. e.g. C11nDashboardPage
- Remember this name as you’ll need the page name for the Harness
Example of rule updated
Create your Harness
This controls the mashup for launching a Constelllation View, take a copy of pzDataExplorer harness rule and create your own harness. E.g. Rule name = ConstellationDashboard
- Ensure you update the rule to reference your own Page Names from the Portal context. e.g. C11nDashboardPage
In the Activity parameters of the Display Options tab, ViewRuleName should be pyDashboardsManager
Create your Nav Rule
Replicate the approach for ExploreDataNavigation navigation rule.
- Copy this rule and create your own
- Update these details with the information from the Harness and Data Transform rules in the prior sections
- Add this nav rule to your portal
@MarcCheong thank you, will give it a try. I think there might have been an issue with some of the screenshots though
@Eloise i have fixed them, sorry about that!






