could you plese explain what is fix script how it works?

preddy1
Giga Expert

could you plese explain what is fix script how it works?

4 REPLIES 4

Community Alums
Not applicable

Hi @preddy1 ,

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.

 

Refer for more : Fix Scripts

Example : https://cloudandback.org/2020/09/08/learning-to-write-fix-scripts-in-servicenow-part-1-query-a-table... 

Anurag Tripathi
Mega Patron
Mega Patron

It is an ondemand server side script you can run on an instance.

-Anurag

Gaurav Shirsat
Mega Sage

Hello @preddy1 

Kindly refer ServiceNow docs documentation for this First.

Apart from this Please see the videos:-

https://www.youtube.com/watch?v=8tLC1WVZoGk 

https://www.youtube.com/watch?v=qL78XaAGr04&t=132s

 

Mark my Response as Correct or Helpful, if you find it Appropriate.
Gaurav Shirsat : ServiceNow Community MVP 2022
https://www.linkedin.com/in/gauravshirsat/

 

AshishKM
Kilo Patron
Kilo Patron

Hi preddy1,

 

A fix script is server-side JavaScript code that runs on installed application.

Fix Scripts are mainly used for updating the system data in bulk manner under fix condition whenever it required.  

 

Example : You need to update 10K incident's assignment group based on configuration item class. You need to write fix script code on Incident table and read the required data and update with new values.  

 

https://docs.servicenow.com/bundle/tokyo-application-development/page/build/applications/concept/c_F...


Please mark this response as correct and helpful if it helps you can mark more that one reply as accepted solution