Query Business rule doesnt restrict the list view records
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 03:35 AM
Hi,
I have written a before query business rule to restrict the display of articles on KB homepage based on the category.
BUt in the list view all the articles are still visible. How can we restrict.
Please suggest
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 04:35 AM
Hi,
Can you share your created before query script? Also, which KB homepage are you referring to? The Service Portal?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-20-2024 05:25 AM
Hi @DivyaNarayG,
Before query BR can be like this below:
if(current.category=='hardware'){
current.addActiveQuery();// you can use your own query as per your requirement
}
Please accept this solution if it works for you.
Thanks
Jitendra
Please accept my solution if it works for and thumps up.