Can we disable running of client script while background script is running?

prajaktanaik
Giga Expert

Hello All,

We have to run a background script to update configuration item of around 500 incidents. But we do not want the assignment group to be changed which usually does when we change the CI as per the onChange client script.

Is there a way to disable running of client script at the time of background script run just as we can disable running of BRs using setWorkflow(false)?

Thanks in advance,

Prajakta

3 REPLIES 3

Allen Andreas
Administrator
Administrator

Hi,

The client script won't run unless you're on that form via client.

What you're doing is server side.

Please mark reply as Helpful/Correct. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Harsh Vardhan
Giga Patron

client script work on browser , if you will make changes by server side script it is not going to save until you save the form. 

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Prajakta,

client scripts work on form and when any user visits the form and does some changes etc

they are not triggered when any server side script runs on that record

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