Filters in Agent workspace landing page

preethigovi
Tera Contributor

In Data Visualization API for multiple data vi, Can we add another set of condition along with existing? Like another set for urgency value like priority one? This is in HR workspace Ui builder component.

preethigovi_0-1780507294431.png

 

preethigovi_0-1780506968410.png

 

 

preethigovi_1-1780506968398.png

 

 

1 REPLY 1

sanjaygupta
Tera Guru
 

Yes, you can add another set of conditions to the existing Data Visualization API for multiple data visualizations request in HR Agent Workspace.

You can do this by updating the filterQuery in UI Builder rather than creating a separate data resource.

Here's how:

  • Open HR Case Management > UI Builder for Agent Workspace for HR Case Management.

  • Open the Landing page default page and clone it if it's read-only.

  • Go to Data and Scripts and select Data Visualization API for multiple data visualizations.

  • Open the Requests configuration and locate the relevant request.

  • Update its filterQuery to include your additional conditions.

For example, to include Priority 1 along with your existing conditions, use:

active=true^assigned_toDYNAMIC<user_sys_id>^priority=1

Use ^ for AND conditions and ^OR for OR conditions. If you need separate condition sets, build them using the filter condition builder and copy the generated encoded query to avoid incorrect grouping.

- Save the changes and test the landing page.

My recommendation: Clone the OOTB landing page and update the filter query there. This keeps your changes separate from the original configuration.

References:

 
Hope you find this helpful.