Skip to main content

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
  1. Jun 24, 2021, 1:56 AM

    You may try with below updated code:

     

    global class WarehouseSyncSchedule implements Schedulable {

    global void execute(SchedulableContext sc) {

    System.enqueueJob(new WarehouseCalloutService());

    }

    }

0/9000