Scheduled report is not triggering properly.

Abhilasha G T
Tera Contributor

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. 

AbhilashaGT_0-1675092659210.png

 

 

1 REPLY 1

simonezini
Mega Sage

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