Exclude Weekends and Holidays for Calculate TTR
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 02:50 PM
Hi,
Iam looking to create a Report which track Time to Resolve Tickets, for this I'm in the process of configuring an Action in flow designer, we already have an action available which calculate the TTR. Looking to exclude Weekends and Hoildays for that. having issue in coding part within the Action. Any help is appreciated.
Attached the current script.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 03:08 PM
hi,
I suggest that you post the entire script (as text), it is cut off in the image after referencing the '8 - 5 weekdays excluding holidays' schedule. So folks here can assist you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 01:40 AM
Hi @Bert_c1 Thanks for the reply. Below is the code
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-21-2024 11:07 PM
you can use GlideSchedule and get the difference. in your schedule ensure you skip the weekends and holidays
check these links on how to subtract using schedule
subtract time from schedule to update task due date
Calculate Date By Adding or Subtracting Time With A Schedule
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 02:15 AM
@Ankur Bawiskar Thanks for the reply, could you please help me with correcting above script which excludes weekends and holidays using GlideSchedule. I tried but unsuccessful.