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
Edwin KEdwin K 

Too many Future Callout in Apex Class from Trigger Solution

Hi all,


I want to ask are there any possible ways to avoid "too many future callout" limit ini apex class? My case is, a trigger is set to call future method apex class which call external web service over than 10 times in apex class..

Any suggestions would be great to avoid callout limit in apex class..



Andy BoettcherAndy Boettcher

You can switch to using Batch Apex - but you're still going to hit a limit.

Edwin KEdwin K

Yes, I have already using batch process but still it hit the limit to max. 10 callouts only.. Are there any other ways?

Thanks before for the suggestion anyway..

Andy BoettcherAndy Boettcher

You're going to have to split up your executions to ensure they don't hit the governor limit.  There is NO way around the governor limits.


However - if you can convert your code into a Batchable context, you can split things into individual batches of records - each gets it's own set of governor limits.



Edwin KEdwin K


I guess there is no choice then... Thanks for the solution, I will try it..