0

What is the query limit for @future method and can i use future method to fetch more than 50,000 records

2

The limits are outlined in the governor limits documentation. Future methods are indeed limited to 50,000 rows. If you need to query more than this, you will need to use a batchable class.

  • Thanks for your reply. But there is a pliot program launched by Salesforce in which you can get 2x or 3x times the normal limit. So can i use this to get higher limit. – Mani Aug 31 '18 at 9:38
  • @Mani Are you on the pilot program? If not, then you can't use it. – sfdcfox Aug 31 '18 at 9:39
  • Please refer the below link : developer.salesforce.com/docs/atlas.en-us.apexcode.meta/… – Mani Aug 31 '18 at 9:44
  • @Mani If you're not on the pilot, you can not use it. You need to contact your customer success representative or your account executive to request access to this pilot. – sfdcfox Aug 31 '18 at 9:46
  • Ok great.I m not aware of it. Thanks for your information – Mani Aug 31 '18 at 9:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.