Why background scripts and fixed scripts are used ? And what are the difference between background scripts and fixed scripts

shaik21
Kilo Explorer

What is background scripts and in which scenario it can be used ?

What are fixed scripts and in which scenario it can be used ? 

What is the difference between background scripts and fixed script?

Getting confused what to use and when to use.

Can anyone please help me with my questions

 

Thanks in advance????

3 REPLIES 3

Nikita30
Mega Sage

Hi 

Please find the below URL for the Fix script and Backgroud script with examples for reference

https://community.servicenow.com/community?id=community_blog&sys_id=677f8b23db646810b1b102d5ca9619b4

 

Please mark the response as Helpful/Correct, if applicable. Thanks!

 

Pavankumar_1
Mega Patron

Hi,

1. Background script used for mass creations, updates, and deletions of records. Also, used for troubleshooting the server side scripts and cannot save the script and can't move to update set.

2. Fix script is server-side JavaScript code that you run after an application is installed or upgraded. we can save the script and move to update set as well. 

when to Use fix scripts to add, update, and delete data, including rules, scripts, and property settings.

related links:

https://community.servicenow.com/community?id=community_question&sys_id=3e427075dbeb5344200f0b55ca961945

https://community.servicenow.com/community?id=community_blog&sys_id=677f8b23db646810b1b102d5ca9619b4

https://docs.servicenow.com/en-US/bundle/tokyo-application-development/page/script/server-scripting/concept/c_ScriptsBackground.html

https://docs.servicenow.com/bundle/quebec-application-development/page/build/applications/concept/c_FixScripts.html

 

Hope you it helps you.

Please Mark Correct/helpful if applicable, Thanks!! 

 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar

Pavankumar_1
Mega Patron

Hi,

If it is resolved please close the thread by Marking as  Correct so that other readers will get benefit if they have similar question.

In future they will refer this one get benefited.

 

Hope you understood.

 

Regards

Pavankumar

If it helps please click Accept as Solution/hit the Thumb Icon.
ServiceNow Community MVP 2024.
Thanks,
Pavankumar