The CreatorCon Call for Content is officially open! Get started here.

What is Script Background - 'sys.scripts' ?

shaik_irfan
Tera Guru

Hi,

 

We all know what is the use of Scripts Background but can anyone please help how it is designed at the backend ?

 

When i see the module of Scripts - Background i see it is linked as URL and in the Argument it is mentioned as sys.scripts.do

 

can anyone please let me know from where it is called i dont see any UI Macro / UI Scripts / UI Page / Table with this name ?

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shaik,

there are many such pages which are not accessible to developers/admins

Only platform level developers might be having access to that

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

7 REPLIES 7

vinothkumar
Tera Guru

Normally in Servicenow, you will be updating only record in the UI, either by changing the state or other form operations.

 

There might be a scenario, where you want to update bulk records like closing the incident that was older than 2 years.

 

In that case if the record count is too high, it might be difficult for us to do update to the record and in that case, we will be writing background script by navigating to system definition > Background script.

 

The arguement that was referred is "sys.scripts.do", which will open a new page for us to write a background script.

 

You can see a lot of example for background scripts in Servicenow Docs.

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Shaik,

there are many such pages which are not accessible to developers/admins

Only platform level developers might be having access to that

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

By any chance we can build Script Evaluator similar to Servicenow Background Scirpts >

Hi Shaik,

What is the special requirement for this if already scripts background is present?

Is this something related to client requirements etc or something personal you are trying to explore?

Regards

Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader