- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 11:10 AM
Hi all,
Please could someone advise why the below is giving me undefined as an answer? Does the glideschedule subtract method no longer exist? If so can anyone help me with an alternative approach?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 09:21 PM
you want to subtract 5 business days and get the date/time?
If yes then check these links, the logic you are using won't work as that's not how you calculate business days
Also remember to use correct schedule sysId
subtract time from schedule to update task due date
Calculate Date By Adding or Subtracting Time With A Schedule
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 09:14 PM
the given Sys ID 43b7baabdb4407002328384c7c96aaaaa is wrong as it has 33 characters. A valid Sys ID in ServiceNow must have 32 characters. Maybe a copy and paste issue?
Maik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 01:49 AM
Ah no I changed that on purpose for this post, the sys id I've been using in the system is definitely correct.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2025 09:21 PM
you want to subtract 5 business days and get the date/time?
If yes then check these links, the logic you are using won't work as that's not how you calculate business days
Also remember to use correct schedule sysId
subtract time from schedule to update task due date
Calculate Date By Adding or Subtracting Time With A Schedule
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2025 03:28 AM
Thanks so much Ankur, the second link worked like a charm!
I'd seen more recent community posts using a schedule.subtract method hence why I was using what I did, but none of them had worked for me