Job is set to run at the start of Data Certification entries, next action is: 3000-02-03 05:30:00
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 03:24 AM
I have a requirement to create data certification on first monday of the month.
I have created a Schedule entry which triggers on every first monday of the month but when i add it to the schedule definition the next run date shows as 3000-02-03 05:30:00.
Schedule definition:
Schedule entry:
Kindly let me know if anyone faced this issue.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2024 06:30 AM
You can run it daily with this condition to check if it's the first Monday:
var today = new GlideDate();
var dayOfWeek = today.getDayOfWeek();
var dayOfMonth = today.getDayOfMonth();
if (dayOfWeek == 2 && dayOfMonth <= 7) {
// Your code here to run on the first Monday of the month
}
Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark