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
ManjunathManjunath 

Total Records returned for single SOQL

Hi,

 

Can anyone give information on how many records are returned by single SOQL query in trigger.

 

Regards,

hitesh90hitesh90

You can retrive 50,000 records using single SOQL query in trigger.

souvik9086souvik9086

50000 records. But it is advisable not to use direct such query when the record in any near to that because it will cause limits to pass especially if you DML with that. When the record count is huge use Batch Apex.

 

If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.

Thanks

Subhani PSubhani P