What is the Use of Outside maintenance schedule field in Change form
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2023 09:03 AM
Have you thought of How the outside maintenance schedule field in change form works
Please have a look at the below post to understand how the OMS field works.
We have a table called "Maintenance Schedules" https://<instance>.service-now.com/cmn_schedule_maintenance_list.do
where in the above table we define the Maintenance Schedules, we can define the conditions when this schedule should be applied for eg if the condition is
Applies to Configuration Item like that
in the Maintenance Schedules page under related list you can able to see the "Schedule Entries" Where we define the Schedule for Maintenance.
If you check the CI which is attached to the Change Request, in the CI there will be field called "Maintenance Schedules" which is to fill the Schedule
If the Planned start and End date are not equal to the schedule which is defined in the "Schedule Entries" Related list in Maintenance Schedules
Business Rule https://<instance>.service-now.com/nav_to.do?uri=sys_script.do?sys_id=8747477a0a0a0b3e49e8ef8be4f6ddcc gets triggered when Before insert or update.
This business will invoke the Script include "https://<instance>.service-now.com/nav_to.do?uri=sys_script_include.do?sys_id=96fce53cc0a801642760dfcee0e04711"
which validates the Maintenance Schedule field in CI and then returns a boolean value either true or false
Then the Business Rule will be updating the Outside Maintenance schedule field to true if the Planned start and end date are outside of the scheduled date defined in the Maintenance schedules
You can try following
1. Login to instance
2. Take any CI and try to bring out the Maintenance schedule field and update the schedule
3. Try to give the planned start and end which is not equal to the Scheduled defined date in the scheduled entry
4. you can see the BR Outside Outside Maintenance schedule will gets trigger and will check the checkbox
5. Try to give the dates same as scheduled entry the field will be unchecked.
Outside Maintenance Schedule field will be checked automatically if the Planned Start date and Planned end date of Change request is not equal to the scheduled entry date.
it will be checked automatically because BR (8747477a0a0a0b3e49e8ef8be4f6ddcc) with Before insert or Update for each update this field will be validated.
Schedule Entries: "https://<instance>.service-now.com/cmn_schedule_span_list.do?sysparm_query=&sysparm_view="
Let me know if you need any clarification
Thanks
Uday.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 12:17 PM
Thank Uday. What would be helpful to me would be able to generate a report of Change Requests that fall "Within the Maintenance Schedule". Does such a feature exist? Thanks, Pat

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-09-2024 08:34 AM
Pat,
That report is possible with the existing Boolean, you just invert the value.
Outside Schedule Changes
- 'Outside maintenance schedule' = TRUE
*Within* Schedule Changes
- 'Outside maintenance schedule' = FALSE
Unfortunately, I haven't found a way to build any PA Indicators for this (outside of formula) because there's no OOB PA Breakdown for boolean values (because reasons? I guess) and I can't seem to create a custom one that works.