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
Rajat Bansal 35Rajat Bansal 35 

Is FIELDS(ALL) safe to use in Batch class START method?

Can we use FIELDS(ALL) in Batch class START method and is it safe?
Sai PraveenSai Praveen (Salesforce Developers) 
Hi Rajat,

I dont see any security issues with using FIELDS(ALL) in batch class. But always it better to query what ever fields you need. 


Let me know if you face any issues.

If this solution helps, Please mark it as best answer.

Thanks,