scheduled report on quarterly basis
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 11:13 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2022 11:45 PM
Hi @Sunil31 ,
Try this code with your required values :
Open Scheduled Reports
Then select 'Monthly' under 'Run" field
Day :1
Conditional : true
Paste the script below under condition tab ;
var gdt = new GlideDateTime(); // for example this month is january,
gs.print(gdt.getMonth()); // output will be : *** Script: 1
if (gdt.getMonth() == 1 || gdt.getMonth() == 5 || gdt.getMonth() == 9 ) {
answer = true;
}
You want your scheduled report to operate every quarter, meaning on 1st January, 1st May, 1st September
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2024 05:01 AM
Hi @Community Alums
I have used same above code but for me when i see the schedule report schedule it was showing incorrect scheduling can you please help me with this
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 12:10 AM
Thank you Sandeep. I will check and mark this as helpful if it works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2022 01:02 AM
Hello,
You do not require to write any script just select the Run as Business Calendar : Entry start and Business calendar as Quarter as below screenshot, it will run the report on 1st date of every Quarter
Please mark my answer as correct based on Impact.