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
ketan holmesketan holmes 

Total number of callouts from future methods

Hello SF Gurus,

Total number of callouts (HTTP requests or Web services calls) in a transaction 100
Maximum number of methods with the future annotation allowed per Apex invocation 50

Does that mean I can make 100 callouts in each future call (i.e. 100*50 callouts) or total of 100 across the 50 future callouts?

Thanks,
KB
AdamDawAdamDaw
I believe it's a question of execution states. If the callouts are in separate execution states, you should be ok. 
ketan holmesketan holmes
Future methods are asynchronous so will they not have separate execution states?

e.g. 

trigger ...

  for(i=0; i<10;i++)
    callFutureMethod(list<ids>);

______________________________________
callFutureMethod(){

  for(j=0; j<100; j++)
   httpResponse = http.send(httpRequest);
}
 
AdamDawAdamDaw
I haven't tested it, but that would be the way to.