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
Sabeeh ShahSabeeh Shah 

How to get past the governor limit of 50000 record query in a batch apex class? I have used querylocator but still the problem exists.

Alexander PlacidiAlexander Placidi

Hi

Could provide us a code snippet?

Mahesh K 22Mahesh K 22
Hi 
  try this 
select Name,StageName,CloseDate from opportunity limit 50000