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
TbomTbom 

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.

 

Thanks

BritishBoyinDCBritishBoyinDC

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...

 

 

TbomTbom

excellent.  thanks for sharing