Calculate Due date using user defined schedules#1817
Calculate Due date using user defined schedules#1817sivamuruganandam-coder wants to merge 25 commits intoServiceNowDevProgram:mainfrom
Conversation
…nces in Published KB Articles
…nces in Published KB Articles
…llment Group References in Published KB Articles directory
…g user defined schedules directory
|
Hi Team, |
|
Hello @sivamuruganandam-coder Can you please explain what happens if the given date is not in the schedule? |
Hi @ravichandra1998g If the date doesn't falls within the schedule, then the 'Continue' statement inside else will be executed. So, it'll again go to While Loop condition, then we'll be adding one more day to the existing date.. |
|
Hey @sivamuruganandam-coder Can you please modify the script to prevent that... |
ravichandra1998g
left a comment
There was a problem hiding this comment.
Please review the comments and update accordingly.
|
@sivamuruganandam-coder Did you get a chance to check? |
Hi @ravichandra1998g |
PR Description:
Description:
This Script Include calculates a future due date by adding a specified number of business days to a given start date, based on a defined schedule.
This can be used anywhere within the server side scripts like fix scripts, background scripts, UI Action (server script).
How it works
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