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-24-2024 06:18 AM
Hi @Rajesh_Bhise Thanks for the solution, it is throwing a error "Error: Java constructor for "com.glide.glideobject.GlideDate" with arguments "string" not found." when i Test above script in flow action.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-26-2024 10:08 PM
Hello @Niranjan2 ,
You can change your inputs type to Date instead of string.
e.g. inputs.Created this should be date type field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2024 05:52 AM
Even though i have changed the Inputs type to Date Instead of Date/Time, it is still showing the same error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-27-2024 07:00 AM
Try Duration calculator, two examples of using
calcScheduleDuration(GlideDateTime startTime, GlideDateTime endTime)
and
calcScheduleDuration(String startTime, String endTime)
Here:
Use the cmn_schedule for "8-5 weekdays excluding holidays" record's sys_id. If you don't care about business days, create a new schedule like "8-5 weekdays excluding holidays" with days and hours set the way you want.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-22-2024 12:05 PM
Hi @Niranjan2 ,
Please check below solved community link may be this will help you
Also check this post
Please mark my answer correct and helpful if this works for you
Thanks and Regards
Sarthak