How to Schedule reports on hour basis?Report for EVERY HOUR between 8PM to 500 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2017 01:03 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-27-2017 01:08 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-24-2017 07:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2017 07:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-08-2017 07:01 AM
**FINAL SOLUTION**
In case it helps anyone, here is the script to make the scheduled report run only from 8 AM to 5 PM.
//Return 'true' to run the job
timeToRun();
function timeToRun(){
var tod = new GlideDateTime();
var hr = tod.getLocalTime().toString().slice(11,13);
var answer = false;
gs.log ('INT3414978 SNC Test Log: ' + hr );
if(hr >= 08 && hr <= 17) {
answer = true;
gs.log ('INT3414978 SNC Test Log: Inside condition ' + hr );
}
return answer;
}