Within our unlocked package, we have implemented a class TimesheetWindowScheduler that implements the Schedulable interface. This class is responsible for executing specific tasks.
public with sharing class TimesheetWindowScheduler implements Schedulable {
public void execute(SchedulableContext ctx) {
//... do something
}
Ideally, we aim to trigger the scheduling of this job automatically upon the installation or upgrade of our package
TimesheetWindowScheduler m = new TimesheetWindowScheduler();
System.schedule(TIMESHEET_WINDOW_SCHEDULER, schedule, m);
Without open developer console, do we have any other way to do that?
unlocked
packagesfdx force:source:deploy