Weekdays only scheduled job.

There’s currently no option to only run a scheduled job on weekdays. You can use this condition to ensure it only runs Monday through Friday.

Make the scheduled job “Conditional” and add this to the conditions:

var answer = false;
 
 
var now = new GlideDateTime();
 
 
if(now.getDayOfWeekUTC() !=6 && now.getDayOfWeekUTC() !=7 )       // this scheduled job will run only on Weekdays
 
 
{
 
 
      answer = true;
 
 
}

Run: should still be set to Daily. But with this added condition, it will only run on the weekdays.

Latest Posts