Schedule Reports for certain days of the week

jmbrake
Kilo Expert

How do you schedule a report to run on Monday thru Thursday only and not Friday?

3 REPLIES 3

faisal_dadabhoy
Giga Expert

You should be able to click on "Conditional" flag and setup.



I believe, the link below explains what you are looking for:


Conditional Scheduled Reports



If you don't want to mess with the conditional reporting, you could schedule a weekly report each for Monday, Tuesday, Wednesday and Thursday.



hope this helps:-)


Vincent121
Tera Contributor

The link provided above is not working, it just takes to home page of community. ðŸ˜‘

 

Mohith Devatte
Tera Sage
Tera Sage

Hello @jmbrake ,

you can use this script in your condition script to avoid running it on Friday 

 

Check the conditional check box and paste the below script in condition field

Screenshot 2022-11-21 at 18.48.19.png

 

 

var answer = false;
var date = new GlideDateTime();
// do not run on 5-friday .
if(date.getDayOfWeekUTC() ==5){	
	answer =false;
}
else{
answer=true;
}

 

Hope this helps 

Mark my answer correct if this helps you 

Thanks