You need to sign in to do that
Don't have an account?

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..
Thanks..
You can switch to using Batch Apex - but you're still going to hit a limit.
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..
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.
-Andy
Ok,
I guess there is no choice then... Thanks for the solution, I will try it..