Creation of new Script include CaclculateDueDate#1814
Closed
sivamuruganandam-coder wants to merge 21 commits intoServiceNowDevProgram:mainfrom
Closed
Creation of new Script include CaclculateDueDate#1814sivamuruganandam-coder wants to merge 21 commits intoServiceNowDevProgram:mainfrom
sivamuruganandam-coder wants to merge 21 commits intoServiceNowDevProgram:mainfrom
Conversation
…nces in Published KB Articles
…nces in Published KB Articles
…llment Group References in Published KB Articles directory
Contributor
ravichandra1998g
left a comment
There was a problem hiding this comment.
Hello @sivamuruganandam-coder
Thank you for submitting!
If the check at line no 13 is false, the days won't decrement and it will go in a loop.
we have GlideDate folder under core ServiceNow APIs and this script is more suitable under that folder.
please make the changes and add the script under appropriate folder.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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).
Pre-requisite:
A schedule record with valid schedule entries should be created in the cmn_schedule table
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