Run schedule Job every 2 weeks

renukaca
Kilo Contributor

How to set a condition to run a schedule job every two weeks?

5 REPLIES 5

Domi727
Tera Contributor

Select Weekly run, and copy-paste the condition from here:

 

function isSecondWeek() {
    return new GlideDateTime().getWeekOfYearLocalTime() % 2 === 0;
}

isSecondWeek();

 

Domi727_0-1717350344206.png