+ Start a Discussion

Question on Batch Apex and callouts

From the SFDC docs, is says "execute()" only allows one callout.   However, the limit for total callouts (in our case HTTP requests) for a given Apex request is 10.

Question: is the Batch Apex routine considered a single Apex request OR is each Batch within considered a single Apex request?


Hoping the latter so that we may make around 50 calls a night via a scheduler.  Seems like it must be so.  If anyone know for sure, please let me know.




The latter - each batch execution is a separate request - so I have a batch that updates stats based on bitly links, and it works fine for 200+ records being processed as long as I limit the scope of each batch exectution to 1 record...




excellent.  thanks for sharing