Activity Forums Salesforce® Discussions Is it possible to fetch more than 50k records in once in Apex class not Batch?

  • Is it possible to fetch more than 50k records in once in Apex class not Batch?

    Posted by Anuj on September 16, 2020 at 1:27 pm

    Is it possible to fetch more than 50k records in once in Apex class not Batch?

    Udit replied 4 years, 2 months ago 3 Members · 2 Replies
  • 2 Replies
  • Marziya

    Member
    September 16, 2020 at 1:45 pm

    You cannot retrieve more than 50,000 records your SOQL calls in a single context. However, with Batch Apex your logic will be processed in chunks of anywhere from 1 to 200 records in a batch.

  • Udit

    Member
    September 16, 2020 at 5:56 pm

    No, you cannot, fetching more than 50k records via apex class will exceed the governor limits.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos