Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to Schedule reports on hour basis?Report for EVERY HOUR between 8PM to 500 AM

sowmyab
Giga Contributor

Hi,

How to Schedule reports on hour basis?Report for EVERY HOUR between 8PM to 500 AM

In schedule jobs- i didn't found option for hour basis (Run-   Daily,Weekly, monthly , periodically)

Please suggest me the how to achieve this?

Thanks

5 REPLIES 5

This did not work for me in Tokyo.
I would try this in the conditional:

var tod = new GlideDateTime();
var hr = parseInt(tod.getLocalTime().toString().slice(11, 13));
var answer = false;
if (hr >= 20 || hr <= 5) {
    answer = true;
}