function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sanchai CRM-CSanchai CRM-C 

SOQL select cross private data.

Hi All

 

I have found some problem about SOQL query.

I have set private record.

Each user can see the own record. But I need to use APEX code to query all data. Not only find in their record.

 

Do you have any idea?

Best Answer chosen by Admin (Salesforce Developers) 
osamanosaman

Use the class with "without sharing" token.