標準でない方法 Apexの中で設定する
I'm executing Cron expression that runs a class after 7 days of the current date
1回だけ7日後に起動させたい。
ScheduleSurveyEmail m = new ScheduleSurveyEmail();
Date dt = system.today().addDays(7);
string sch = '0 0 0 '+dt.day()+' * ?';
String jobID = system.schedule('Schedule Job', sch, m);
関連資料
曜日を指定しているので、月のところは?にする必要があると思います。
?
特定の値を指定しません。
「任意」として読み取られます。
Day_of_month と Day_of_week のみで使用され、どちらか一方の値を指定します。