+ Start a Discussion
Hargobind_SinghHargobind_Singh 

Scheduling a callout

Hi,

 

Is there any way that a web-service call-out can be scheduled ? i don't want to use Cronkit, and by the documentation it seems like the batch Apex now supports it, but since scheduled apex doesn't support it, does that mean that we cannot schedule callouts for now ? 

 

Or am I wrong somewhere in the above paragraph ? 

 

Thx....

paul-lmipaul-lmi

write a schedulable class that does the callout, and make the callout an @future method.

Hargobind_SinghHargobind_Singh

Yes, I definitely though about that, but we have much more than 200 records in a day. So @future won't work out.

 

 

_Prasu__Prasu_

you can try out processing more than 1 records in one callout.

paul-lmipaul-lmi

or using the scheduler to kick off a batch apex job to do the callouts per record, one record per batch.