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
Hari.gsHari.gs 

Apex Scheduler

 

Hi all,

 

Can anyone please help to wrute a Apex Scheduler that will be called every 1 hr.

 

What i have written is , public static String CRON_EXP = '0 * * * * ?';  this shows an error.

 

Plase help me.

 

Thnaks and Regards

Hari G S

 

 

bob_buzzardbob_buzzard

I think this is because you have specified the all values character, '*' for minutes, which isn't allowed.  

 

Try:

 

public static String CRON_EXP = '0 0 * * * ?';