Run schedule Job every 2 weeks
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2018 09:56 PM
How to set a condition to run a schedule job every two weeks?
5 REPLIES 5
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2024 10:44 AM - edited 06-02-2024 10:45 AM
Select Weekly run, and copy-paste the condition from here:
function isSecondWeek() {
return new GlideDateTime().getWeekOfYearLocalTime() % 2 === 0;
}
isSecondWeek();