- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 05:13 AM
What is Script Background & Fix Scripts?
I think both are used for running ad hoc scripts without the use of any workflow object or BR etc. But what is the difference?
Solved! Go to Solution.
- 10,573 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 05:21 AM
Hi Swathi,
Fix script is best approach when you install new application or want some data fixes to be running after making some changes in prod. The best feature of fix script is you can monitor it's execution and check the progress and you can kill the transaction as well.
Never execute any insert/update/delete script from script background since if it takes long time the browser will timeout and also if any error comes in the script it may get into some loop.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 05:19 AM
A fix script is server-side JavaScript code that you run after an application is installed or upgraded.
Include fix scripts to make changes that are necessary for the data integrity or product stability of an application.
Where script backgrounds I have always to use to try and troubleshoot my server side scripts.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 06:20 AM
Can Fix script used only when application is installed or upgraded? Can't I use it for a custom table records update?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 05:21 AM
Hi Swathi,
Fix script is best approach when you install new application or want some data fixes to be running after making some changes in prod. The best feature of fix script is you can monitor it's execution and check the progress and you can kill the transaction as well.
Never execute any insert/update/delete script from script background since if it takes long time the browser will timeout and also if any error comes in the script it may get into some loop.
Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2018 06:19 AM
Cant we use Fix Script for updating already existing application or just a table?