I am trying to schedule a job to run several times a day.
It's a Utilization job which is part of the FinancialForce PSA application. The UtilizationScheduler class has this signature:
global class UtilizationScheduler implements System.Schedulable {
global UtilizationScheduler(pse__Utilization_Calculation__c calc) {
}
global UtilizationScheduler(pse__Utilization_Calculation__c calc, String cronDayParm) {
}
global void execute(System.SchedulableContext sc) {
}
}
I think I am close with:
System.schedule('Utilisation 1am 1pm 5pm', '0 0 1,13,17 * * ?', new UtilizationScheduler());
But I get an error: Invalid type: UtilizationScheduler
by Executing Anonymous Apex from the Developer Console.
How should I call the UtilizationScheduler Class? How do I tell it what Utilization Calculation (a custom object in FinF PSA) to use?
Apologies - this is my first foray into Apex code. Help greatfully received!