Can we disable running of client script while background script is running?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2019 08:00 AM
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
- Labels:
-
Scripting and Coding

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2019 08:04 AM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2019 08:07 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2019 08:10 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader