Core API - Next Business Window Calculator#2382
Core API - Next Business Window Calculator#2382franks883 wants to merge 2 commits intoServiceNowDevProgram:mainfrom
Conversation
|
👋 Unassigning @rohi-v due to inactivity (> 60 min without comments/reviews). This PR remains open for other reviewers. |
am-shakeel
left a comment
There was a problem hiding this comment.
Hi @franks883, you mentioned that it's a reusable Script Include, but the files are under the GlideDateTime folder. Could you please move the files to the Script Include folder.
Thank you for your contribution. However, it doesn’t comply with our contributing guidelines. As a reminder, the general requirements (as outlined in the CONTRIBUTING.md file) are the following: follow the folder+subfolder+snippetfolder guidelines and include a readme.md file explaining what the code snippet does. Review your contribution against the guidelines and make the necessary adjustments. Closing this for now. Once you make additional changes, feel free to re-open this Pull Request or create a new one.
PR Description:
Core ServiceNow APIs: GlideSchedule “Next Business Window” calculator
Adds a reusable Script Include that computes an end date/time by adding N working minutes across a GlideSchedule (respecting holidays/time zones) and returns the intermediate segments consumed. This solves a real scheduling problem without re-implementing SLAs and is production-safe (guard rails, configuration, comments). References to official GlideSchedule docs are provided.
Pull Request Checklist
Overview
Code Quality
Repository Structure Compliance
Core ServiceNow APIs/Server-Side Components/Client-Side Components/Modern Development/Integration/Specialized Areas/Documentation
Restrictions