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
Increase view resultset countIncrease view resultset count 

How to increase the number of records return from StandardSetController getRecords() method

Hi,

 

I have a scenario where I need to validate my created record Id is falls under an object's View.  But StandardSetController getRecords() method will return only 10000 records. How to get all records falls uner a particular view. Please dont suggest Batch apex this will not my approach to validate.

 


Is there any edition which can return more than 10000 records for SFDC.

 

Thanks in advance.

V

Jeff MayJeff May

No, you can't get more than 10,000 records, but I wonder what you would do with that many records anyway.  You can use an aggregate query to get 'counts' of matching records if that's what you're looking for.