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
VJayVJay 

"Select count() from account" and it's reached limit 50k. How we can count next record.

Narender Singh(Nads)Narender Singh(Nads)

Hi,

Use offset keyword in your query to skip the records.
Refer to this documentation to understand its use: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_offset.htm

Let me know if it helps
Thanks!