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
Karna_ShivaKarna_Shiva 

How to get fields information which doesn't have access to specific profile in SOQL

How to get fields information which doesn't have access to specific profile in SOQL
Amit Chaudhary 8Amit Chaudhary 8
Create one class in without sharing mode and execute your query. it will give you all record without checking FLS and profile access.

Please check below post for more information
1) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm
2) https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_classes_keywords_sharing.htm

Let us know if this will help you