how to disable all rules, scripts, email notifications on sc_req_item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 07:48 AM
HI All,
Does anyone know how to disable all BR, scripts, workflows, email notifications, etc on the sc_req_item table? I have a background script that I need to run that will update values on 124 records in teh sc_req_item table and I do not want any rules or events or anything to fire when I update.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-24-2018 07:50 AM
This at least turns off BRs, even from workflows/events, etc.
gr.setWorkflow(false);
This won't update system fields:
gr.autoSysFields(false);
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
07-25-2018 07:15 AM
thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-25-2018 07:16 AM
Hi,
No problem!
Please mark original reply as Helpful/Correct, if applicable. 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
11-27-2023 09:06 AM
You can use: setUseEngines(false)
e.g. gr.setUseEngines(false)
This will stop everything mentioned, be careful though as sometimes you will was Business Rules etc to run depending on your business requirements. This also stops Data Policies from running so use it with care.
Documentation link ( with a very poor explanation of 'engines') https://developer.servicenow.com/dev.do#!/reference/api/utah/server_legacy/c_GlideRecordAPI#r_GlideR...
Regards
Paul