Query Business rule doesnt restrict the list view records

DivyaNarayG
Tera Contributor

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

Kieran Anson
Kilo Patron

Hi,

Can you share your created before query script? Also, which KB homepage are you referring to? The Service Portal?

Jitendra Diwak1
Kilo Sage

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.