function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Satya sai sudhirSatya sai sudhir 

Hello. I want to create a scheduled classin apex on leads which will email me new leads created with their name for every hour . How do i proceed with this? This is my first time using it.

I have created a class called "SCHEDULABLE"  and added the following code. How do I proceed now? When I checked the Steup>Scheduledjobs it is empty!!. 

global class Schedulable {
    
global void execute(SchedulableContext sc){}
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();

}