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
krishnagkrishnag 

error message limit exceeded

hi i have an asynchronous class for a trigger.I got an exception last night saying

 

 

Limit exceeded 200 method calls for a day. What is this how can we avoid this.

Paul.FoxPaul.Fox

Salesforce limits each user to 200 future method calls in 24 hours.

 

So if you have one future method dosomethinglater(), a user can call it 200 times in a day, or if you have 10 you can call them each 20 times before it will not let you do any more future methods that day.

 

You can avoid it by only using future methods when you really need to. You can also put several actions inside one future method instead of splitting it up into separate methods.