- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 11:33 AM
Hi,
Is there a way to define that only the assignment group could see her cases rows?
I tryed a before BR on case table, but it not working like on incident table and I don't know why.
Advanced Condition is: gs.getSession().isInteractive()
(function executeRule(current, previous /*null when async*/) {
// Add your code here
var myUserObject = gs.getUser();
var myUserGroups = myUserObject.getMyGroups();
var groupsArray = new Array();
var it = myUserGroups.iterator();
var i=0;
while(it.hasNext()){
var myGroup = it.next();
groupsArray[i]=myGroup;
i++;
}
var qc = 'assignment_group.sys_idIN'+groupsArray;
current.addEncodedQuery(qc);
})(current, previous);
Why is this code not working on cases?
Thanks for help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 04:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2023 01:41 AM - edited 12-14-2023 01:43 AM
this doesn't work either. The user can see all cases with role customer service agent.
deactivated already all other query business rule.
Do you testet this on cases? Something else in csm should block this query business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-13-2023 04:08 PM
Try writing an ACL instead of BR.