Query Business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2023 10:40 AM
All,
for this requirement I need to restrict records. it should only show those records belonging to their user groups. (for example, if user A belong to 5 groups, then it should show only those records in 5 groups)
Can someone help me out with script here?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2023 04:34 AM - edited 07-20-2023 04:41 AM
Hi @Mahesh137 try below options
Write a read ACL on table and put the condition in the advance script
if(gs.getUser().isMemberOf(current.assignment_group))
answer=true;
Query BR
if(gs.getUser().isMemberOf(current.assignment_group))
{
current.addQuery('assignment_group',current.assignment_group);
}
Don't forgot to make my answer Helpful/Correct, if applicable
Regards,
Siddharam