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
Ankit GangwaniAnkit Gangwani 

Run Cron Job every First week of Monday and Thursday

Hi All,

I am looking for a cron expression that runs my apex class every first week of Monday and Thursday in all months

I have tried to set up

expression = 0 0 1 ? * 2#1 which shows Fires at every first week on Monday,

but i am looking for something which runs my apex class on every first week of Monday and Thursday.....

I am looking forward to hear from you all.

This is quite urgent, please let me know as soon as possible.
Sankeerth ReddySankeerth Reddy
I used CronMaker to get this cron expression to schedule a job for 1st monday of every month 0 0 12 ? 1/1 MON#1 * and this one to schedule a job on 1st thursday of every month 0 0 12 ? 1/1 THU#1 *. Link to cron expression maker http://www.cronmaker.com/ . You can also schedule your apex class in Salesforce UI setup > apex classes > Schedule Apex(button) > choose the frequency. But I do believe you have to schedule it twice once for monday and one for thursday.