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
Tony Williams 9Tony Williams 9 

Polling and external web service every few hours

HI   our company is doing order fulfillment using a remote warehouse.  
I have created code to upload the orders to the  Warehous's remote web service via HTTP Callout but I need to know:
Q) How can we create a batchable like Class that just polls the web service for results via GET  every few hours?
I really don't need to use the database.querylocator start(Database.BatchableContext BC)   method to batch load objects for the execute(Database.BatchableContext BC, List<scope> scope). 

 Thanks
Raj VakatiRaj Vakati
You can call its form the apex scheduler .. 

https://salesforce.stackexchange.com/questions/22916/scheduled-apex-callouts-and-running-a-batch


https://developer.salesforce.com/blogs/developer-relations/2010/02/spring-10-saw-the-general-availability-of-one-of-my-favorite-new-features-of-the-platform-the-apex-schedulerwith-the-apex-s.html


https://www.desynit.com/dev-zone/salesforce-development/how-do-i-schedule-apex-programmatically/


https://www.financialforce.com/resources/batch-apex/


https://salesforce.stackexchange.com/questions/96536/error-system-calloutexception-callout-from-scheduled-apex-not-supported