Scheduled report is not triggering properly.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-30-2023 07:31 AM
i have created one report and scheduled that also, i am trying to test if it will be triggered correctly or not i have clicked on button "Execute now", For the first time it triggered correctly and i got the email but when i am clicking on "execute now" again then its not triggering, please suggest as why its not triggering second time.
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-28-2024 01:15 AM
Hi @Abhilasha G T ,
could there be some issues with the condition you set up?
I think that the condition script should return the answer variable in order to check the condition, something like this:
var schedule = new GlideSchedule('SYS_ID_OF_YOUR_SCHEDULE', 'UTC');
var date = new GlideDateTime();
//Check if current date and time is in schedule
if (schedule.isInSchedule(date)){
answer = true;
} else {
answer = false;
}
Let me know if it helps
Regards
Simone