You need to sign in to do that
Don't have an account?
Tony 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
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
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