Query Business Rule problem
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-21-2023 01:42 AM
Hello,
I have a request to make interactions visible only to people who belong to the marked group. To do this, I created a Before Query Business rule without condition on the table Interaction with the following code:
condition: !gs.hasRole("admin")
script:
current.addEncodedQuery("assignment_group=javascript:getMyGroups()");
The business rule is working fine, when I open the lists the agents can only see the interactions marked for their groups.
However, this business rule is generating a problem in the Workspace. When it is active, the contextual side panel disappears.
Picture with BR Disabled (with At a glance, agent assist and attachment) :
Photo with BR Enabled:
Can anyone tell why this is happening and how to get around this problem?