How to trigger "Query" business rule only for Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 09:01 AM
Hi,
We are trying to restrict displaying retired KB articles by using "query" business rule but we want to trigger it only for searches within agent workspace.
Can anyone please help us regarding it. Please suggest to me.
Thanks,
Pratik.
- Labels:
-
Agent Workspace
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 09:08 AM
Hello,
You can utilize this table ts_query_kb .
In the above table all search logs will be there and there is a column called source type which says from where it got searched .
In our case its workspace ,so in your Query BR try to glide record to this table and query with kb ARTICLE OR SOURCE DOC fields available on ts_query_kb this table and check if source type is workspace or not.
If it is workspace then execute your logic.
please refer to below screenshot attached for reference
Please accept the solution if it works for you this might be a useful case for others too
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-07-2022 10:26 AM
Hi Mohith,
I tried searching the a KB article in agent workspace global search but it did not generate any logs in "ts_query_kb" table. The logs are there when we search articles in agent assist, but is it possible to restrict it for global search in agent workspace.
Thanks,
Pratik.