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
vanessa veronvanessa veron 

Job Schedulable all third monday of month

Hello
How can I create using the expression values ​​a JOB to run every third Monday of the month?

I tried something, but did not work: 0 30 15 ? * 2#3

Thank you
Best Answer chosen by vanessa veron
Sfdc CloudSfdc Cloud
Hi,
As per Salesforce document  says.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

# Specifies the nth day of the month, in the format weekday#day_of_month. This is only available for Day_of_week. The number before the # specifies weekday (SUN-SAT). The number after the # specifies the day of the month. For example, specifying 2#2 means the class runs on the second Monday of every month.

Try this one 0 30 15 ? 2#3



All Answers

pradeep naredlapradeep naredla
hi vanessa,
         can u eloberate ur issue you want to run a task automatically on 3rd monday of every month.
 
vanessa veronvanessa veron
Thank you...
Yes I know, in Salesforce I can create... but I need to create via Apex code.
pradeep naredlapradeep naredla
Hi vanessa,

yes u can achive it in apex code also by writting a shedule class 
Sfdc CloudSfdc Cloud
Hi,
As per Salesforce document  says.
http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_scheduler.htm

# Specifies the nth day of the month, in the format weekday#day_of_month. This is only available for Day_of_week. The number before the # specifies weekday (SUN-SAT). The number after the # specifies the day of the month. For example, specifying 2#2 means the class runs on the second Monday of every month.

Try this one 0 30 15 ? 2#3



This was selected as the best answer
vanessa veronvanessa veron
Thank you!!!
Now It work...