Challenge Not yet complete...here's what's wrong The WarehouseSyncSchedule apex class does not appear to be queuing a job for the WarehouseCalloutService class.
Here is my code for the same.
WarehouseSyncSchedule class-
global class WarehouseSyncSchedule implements Schedulable{ global void execute (SchedulableContext sc){ WarehouseCalloutService.runWarehouseEquipmentSync(); } }
Execute Anonymous Window-
System.schedule('WarehouseSyncScheduleTest', '0 0 1 * * ?', new WarehouseSyncSchedule());
2 answers
You may try with below updated code:
global class WarehouseSyncSchedule implements Schedulable {
global void execute(SchedulableContext sc) {
System.enqueueJob(new WarehouseCalloutService());
}
}