What is the difference between Fixed scripts & background Scripts?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2022 10:46 PM
What is the difference between Fixed scripts & background Scripts ? can anyone please tell what is the exact difference i read many articles but didn't get those. i am Expecting exact difference. Thank you in advance.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2022 10:56 PM
Fix Script - Is specific for data of an application that has been installed/upgraded. Background script-mass creations, updates, and deletions of records.
Please more detail in this post-https://community.servicenow.com/community?id=community_question&sys_id=3e427075dbeb5344200f0b55ca961945#:~:text=Fix%20Script%20%2D%20Is%20specific%20for,Also%2C%20used%20for%20troubleshooting.
If my reply is Helpful/Correct, please mark the answer as correct. This will help others searching for a similar question, and will take the question off the unsolved list.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2022 11:17 PM
Hi Akshay,
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. Administrators can create, manage, and run fix scripts. Users with the script_fix_admin role can create and manage fix scripts but cannot run fix scripts.
Whereas for Background Script :-
Administrators can use the Scripts - Background module to run arbitrary JavaScript code from the server.
- A text field to enter JavaScript
- A selector to specify the application scope
- A Run script button
- A list of available scripts
- A Record for rollback? check box. Selected by default, this creates a rollback context for the script execution. After the script is run, click the Script execution and recovery available here link to go to the Script Execution History form where you can rollback the script.
Administrators can run any valid JavaScript that uses the Glide API. The system displays results, information, and error messages at the top of the screen.
Thanks,
Sandeep
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2022 11:53 PM
Hi Akshay,
Kindly mark the answer as Correct & Helpful both such that others can get help.
Thanks,
Sandeep

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2022 02:54 PM
Following article has a good explanation on Fix Script vs Background script and which to choose.
In a nutshell,
Fix Script:
- Can be saved (can use ServiceNow's inline javascript editor)
- Can be added to update set
- Can run in background
- No rollback by default (need to add Record for rollback checkbox)
Background script
- Can't be saved (can't use ServiceNow's inline javascript editor)
- Is not added to update set
- Runs in foreground
- Can rollback by default (i.e. Record for rollback is checked)
- Has sandbox mode
- Script auditing
- Reporting of changed records after execution
- Readable log output
https://community.servicenow.com/community?id=community_blog&sys_id=677f8b23db646810b1b102d5ca9619b4