You need to sign in to do that
Don't have an account?
mukesh khandve
How Create Test class
global class DailyLeadProcessor implements Schedulable{
global void execute(SchedulableContext ctx){
List<lead> newLead=new List<Lead>([Select Id,LeadSource from Lead where LeadSource!=null ]) ;
if(!newLead.isEmpty()!=null){
for(Lead l:newLead){
l.LeadSource='Dreamforce';
}
}
}
}
global void execute(SchedulableContext ctx){
List<lead> newLead=new List<Lead>([Select Id,LeadSource from Lead where LeadSource!=null ]) ;
if(!newLead.isEmpty()!=null){
for(Lead l:newLead){
l.LeadSource='Dreamforce';
}
}
}
}
Use the below code,