Scheduled Email Report
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 10:49 AM
Hi Team,
I want to scheduled the report three times a day 8:00 AM, 10:00 PM and 2:00 AM. How can I do this?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 06:53 PM
Hello @BibekP ,
Good Day !
- Please refer to the below document for the ask !
Schedule emails of reports :
Shravan
Please mark this as helpful and correct answer, if this helps you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-16-2025 08:11 PM
2 methods
1) have 3 different scheduled reports 1 each at 8am, 10pm and 2am
OR
2) have single scheduled report which runs periodically every 1 hour and it will use script in condition field to check what's the time, if the time matches then condition will be true and report will be sent
something like this
var gdt = new GlideDateTime();
var currentTime = gdt.getDisplayValue().split(' ')[1]; // Get the current time in HH:mm:ss format
// Define the times to check
var timesToCheck = ['08:00:00', '22:00:00', '02:00:00'];
if (timesToCheck.indexOf(currentTime) !== -1) {
answer = true;
} else
answer = false;
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader