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
MarinaMartinMarinaMartin 

Scheduled job day of week syntax

Hi,

 

I'm stumped on how to get my scheduled job to run every Monday and Thursday starting on the SECOND Monday in the months of March, June, September, and December.

 

I tried

 

String sch = '0 0 8 ? MAR,JUN,SEP,DEC 2#2,2#3,2#4,2#5,5#2,5#3,5#4,5#5';

 

Through trial and error, this works fine except for the day of the week section. It only seems to recognize the first 2#2, and not the rest of them. Is there a way to combine them properly? Or would I have to schedule this 8 separate times?

 

Thanks in advance for any insight.