Run schedule Job every 2 weeks
- 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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 10:09 PM
you can schedule you job to run daily but in GlideRecord query you can check the condition if it's 15 days as compare the updated ya other date field then execute the code. example:
gr.addQuery('sys_created_on','<',gs.daysAgo(15));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 10:21 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-12-2018 10:31 PM
You have to add choice of 2 week
Thank you,
vishu

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-13-2018 07:47 AM
I don't think OOB we can do this, but was thinking if we can schedule the job for every week and then let's just put the condition to check the if the created date in sys_trigger table is less than 14 days for that particular schedule then let's not trigger the job.
Note: Haven't tested but just a thought if we can try in this way and if this helps.