Australia upgrade broke script logic in Scheduled Jobs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 hours ago
We had a need to run certain scheduled jobs on a specific schedule that wasn't supported out of the box. To that end we came up with a simple script to meet our requirements.
var run = false;
var today = new Date();
var weekday = today.getDay();
if (weekday > 0 && weekday < 6)
{
run = true;
}
else
{
run = false;
}
Once we upgraded to Australia, this is no longer working for us. I have opened a case with ServiceNow support regarding this, and they came back and said the Run cannot be executed because it has no meaning outside of the script however it worked in Yokohama. Anyone else encountered this, or have a solution? They are pointing me to a KB article about running Flows on a specific day of the week, but what I was doing existed only in scheduled jobs and had no flows involved. Am I going to have to build a flow now to make this work?