Fix Script or On Demand Scheduled Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-22-2025 08:30 AM
I need some explanation as to when to create a script as a Fix Script and when to create it as an On Demand Scheduled Script.
My team and I sometimes create scripts to update data within our instance that was not updated automatically when it should have been. For example, we have a script that will close open catalog tasks in which we specify the #'s for that did not closed for some reason or another. Another example is that we have a script that will close change requests that we specify the #'s for if the change tasks are closed. We also have others. My question that I'd like an explanation for is what should these scripts be created as: Fix Scripts OR On Demand Scheduled Scripts?
The name, Fix Script, sounds like it would include the types of scripts mentioned but ServiceNow documentation states "A fix script is server-side JavaScript code that you run after an application is installed or upgraded" which doesn't quite fit our examples.
The name, Schedule Script, doesn't sound like it would include the types of scripts mentioned but the fact that it can be set to run 'On Demand' makes me think that maybe the example scripts mentioned should be created as Scheduled Scripts.
When should I create my script as a Fix Script and when should I create it as an On Demand Scheduled Script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-27-2025 10:21 PM
Thank you for marking my response as helpful.
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