I have scheduled the execution of my class and am getting an error. What did I do wrong and how do I fix it?
global class SchedulableExchangeRate implements Schedulable {
global void execute(SchedulableContext ctx){
CurrencyExchangeController newCurExcContr = new CurrencyExchangeController();
newCurExcContr.calloutCurrency();
}
}
public class CurrencyExchangeController {
public void calloutCurrency(){
//here is the code of my method
}
}