- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-01-2019 01:41 PM
Hi,
I have a requirement for setting a field value as 5 business days minus the set date on the another field on a catalog form.
For example-
If the Delivery_Date is set as 11-15-2019, the Actual_Start_date should be 11-08-2019, taking into account the 8-5 weekday schedule.
Looking for on how to configure the Actual_Start_date.
The delivery date can be modified by the user submitting the request, so I know it should be a catalog client script, but I am quite new to coding and after thoroughly searching the community, could not find the answer I needed.
So requesting the ServiceNow Community for assistance.
Thanks.
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-07-2019 08:49 AM
Hi All,
I finally made is possible by following a minimal scripting method using the Timer.
As suggested by TJW in set a timer in workflow based on a variable, I was able to set the schedule and make the timer wait as per my needs.
Thank you all for your support 🙂

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 12:19 AM
Hi
Where do you want to add the schedule?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 12:21 AM
In the actual_start_date.
I want that what the delivery_date the user is choosing, the actual start date should be 5 business days before it not calendar days.
With your and community's help we set it up for calendar, however is there a way we can add the "8-5 weekday" schedule to make it business days?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 12:24 AM
Hi
So when someone tries to select the date, if it is a weekend you dont want to accept the date right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 12:33 AM
Hi,
No, I want the subtract of the date to be 5 business days.
For example taking today.
If someone selects Delivery_date as 4th Nov, the actual start date at this moment is coming as 29th Oct, because it is counting the weekend as well.
I want this actual_start_date to come as 27th Oct, skipping the weekend.
Just like we have schedules- 8-5 weekend etc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-04-2019 12:35 AM
Hi
This might help, do these in the script include -
https://www.servicenowguru.com/scripting/business-rules-scripting/schedule-time-addition/