Discussion

Pegasystems Inc.
GB
Last activity: 6 Jun 2025 11:12 EDT
Utilising Advanced Associations (joins) with Insights in Explore Data to report on Tags
Enjoyed this article? See more similar articles in Constellation 101 series.
Why?
This article is written in response to a question on the User Experience Expert Circle discussion.
The question wanted to show Tags in Insights (Explore Data) with filtering.

Constellation Knowledge
It requires a combination of different Constellation knowledge areas, and is a good demonstration of advanced use cases:
- Insights
- Association rules
- Advanced associations (joining multiple data sources)
- Relevant Records
- Promoted Filters
- Tags widget in Pega
Purpose and Functionality
Pega's case tagging is designed to provide flexible classification and collaborative case management. Tags can be used to classify, manage, and report on cases in a preferred way, promoting both flexibility and collaboration among case workers. The system supports hierarchical tag organization, which can help replace your client's 32 different icons with a more structured and searchable approach.
The tagging functionality integrates seamlessly with Pega's case management framework, allowing tags to be used not only for visual identification but also for business logic, prioritization rules, and automated processing based on external system statuses.
Implementation Steps
This explanation assumes that we’re starting from the beginning. At a high level, the steps are:
- Add tags to your case type(s)
- Add association rule to the Tag data so it can be used in Insights (Explore Data)
- Mark the fields in the Tags data object relevant, so they can be reported on via Insights (Explore Data)
- Add the Association explicitly for use in Explore Data
- Create an Insight with Promoted Filters
1. Enable tags on your Case Type(s)

- Open your Case Type
- Navigate to the UX Tab
- Remain on the Full Page View, scroll down to the Utilities Menu
- Add the Tags widget
2. Association rule to enable access in Insights (Explore Data)
When you reference data that stored outside your case, you require an Association to access this data. This is fields like Data Reference, Operator Reference and Case Reference.
Basically, we store an ID of the data being used, then you are looking up all the other details about data. These save storing huge amounts of data inside the case.
If you have a look at the Out of the Box (OOTB) Insights you can see we provide a few for you already: Create Operator, Update Operator and Owner.
- Navigate to Dev Studio
- Open the Records menu on the left-hand side
- Right-click on Data Model and select Create > Association
Create association rule
- Create a new rule, called Tags, in your work class. E.g. MyOrg-DemoApp-Work (in my example)
- By putting it at Work class instead of Work-CaseTypeName, you are making it available for all cases
Association rule creation
- Click “Convert to advanced configuration” as we need to do multiple joins here
- Complete the form as below
Advanced class join association details - Classes
- class = Data-Social-Tag
- with 2 joins
- TagLink prefix for Link-Tag class
- Tags prefix Data-Social-Tag class
- Edit the conditions for both joins
- TagLink should be as below, .pzInsKey = TagLink.pxLinkedRefFrom
- Tags should be as below, Tags.pzInsKey = TagLink.pxLinkedRefTo
- Save your rule
3. Mark fields relevant
- Navigate to Dev Studio (if not already there)
- Click the App menu on left hand side
- Explore the class Data-Social-Tag
- Expand Data Model
- Expand Property
- Left-click to open pyTagName
- Go to Actions on the rule form, and click “Mark as relevant record”
- My image below, it is greyed out, as I have already done this (you can only do this once). In your example, it will be active and selectable.

4. Add the Association explicitly for use in Explore Data
Simple association rules are automatically included in Explore Data for use in Insights. However, more complex ones, require you to add this to Explore Data landing page – a feature that is not well known.
- In either App or Dev Studio navigate to your Channels (and Interfaces)
- Open any User Portal you have created, default is typically “Work Portal)
- Navigate into the landing pages
- Open the Explore Data landing page
- On the right-hand side, add your case(s) you want this feature to appear
- Click the gear icon
- Add the association for Tags we just created

5. Create an Insight with Promoted Filters
Now we bring it all together.
- Open Explore Data
- Explore the case type you want to create the Insight for
- In the Columns configuration add the Tags > Tag Name field
- In the Promoted Filter configuration add the Tags > Tag Name field
- For a better UX (in my opinion)
- Click the configuration of this Promoted Filter
- Select edit filter
- Click Display as Picklist
- Submit
- Now test it out! If you’re happy either save this insight, add it to a Landing Page or a Dashboard for the users to use.
