I have created an LWC where the related Apex class is querying the approval history object for all the objects and filter all records where the current user has been delegated for the approval of any of these records.
The LWC is displaying the results (records to be approved) in a similar way as the standard component “Items to Approve” does.
The functionality works well for admin users, if the user is admin and delegated approver, he can view all the approvals. but the records are not showing to the non admin users. Although I have mentioned that the class is as "without sharing".
Can anyone guide me what I am missing, What can be done to fix this issue?
Write a comment...
0/9000