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
JeeTJeeT 

How to get the invisible field values from SObject by Permission set in SOQL

On the approval process, when user submitting for approval, the mail is going to the approvers.
Some custom fields are there which are not visible to users where as visible to approvers by some Permissions Settings.
The emails sent by user to approvers contains these fields.
The received email doesn't contain any value regarding this custom fields as this doesn't have the permission to the user.

These blank fields need to be populated on received emails.


How to query these fields by SOQL?


I need this very urgent to work it out.

 

Thanks in advance.

Rahul_sgRahul_sg

is your APEX class running in system mode?

if NO is there any harm making it without sharing/ public?

if no then let your class run in system mode.