User able to view the list of records. However, onclick of record, "No record found" message is got
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 07:43 PM
Hello experts,
I am facing a challenge with a simple read ACL. Not sure where I'm missing. Need to help you resolve my issue that I have explained below.
For the table "sn_hr_core_case_cabin_crew", I have written 2 read ACL.
ACL1: If the user has the below role, he will be allowed to read the record.
ACL2: If the case is assigned to the user, then allow read access.
answer = caseAssignee();
function caseAssignee() {
var userID = gs.getUserID();
var assignee = current.assigned_to;
gs.info("ACL | Cabin Crew Read Access " + userID + ' | ' + assignee);
if (userID == assignee) {
return true;
} else {
return false;
}
}
When I impersonate the assigned to user, I'm able to view the list of records.
However, on click of any of the records, I'm getting "No records found" message only.
Can anyone help me understand what I'm missing here? Thanks in advance.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2024 10:11 PM
Hi @Sruthi17
Please check all ACL`s, related to the particular tables, Also check ACL Debugging tool--> System Security > Debugging > Debug Security Rules. impersonate the user and attempt to access the record to see detailed logs of all ACL evaluations.
-> The “No Records Found” message might not be directly related to the read ACLs themselves but could be influenced by other types of ACLs that are failing, even if you pass the read ACLs.
Please Mark this Helpful and Accepted Solution. If this Helps you to understand. This will help both the community and me..
- Keep Learning
Thanks & Regards
Deepak Sharma