The Zurich release has arrived! Interested in new features and functionalities? Click here for more

User able to view the list of records. However, onclick of record, "No record found" message is got

Sruthi17
Kilo Sage

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.

Sruthi17_0-1713839823464.png

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.

Sruthi17_1-1713840109099.png

However, on click of any of the records, I'm getting "No records found" message only.

Sruthi17_2-1713840161903.png
Can anyone help me understand what I'm missing here? Thanks in advance.

 

1 REPLY 1

Deepak Shaerma
Kilo Sage

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