-
Notifications
You must be signed in to change notification settings - Fork 907
Calculate Due date using user defined schedules #1817
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calculate Due date using user defined schedules #1817
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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