- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 08:48 AM
I need to make a lot of changes to a table after moving it under the task table... is there a command you can put at the top of a background script to make it not run the business rules during the updates?
I would rather not have to disable them all.. then re-enable them all
Solved! Go to Solution.
- Labels:
-
Service Mapping
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 08:53 AM
You can use "gr.setWorkflow(false);" in your script to disable Business Rules.
Check out Mark Stanger (Crossfuze)'s ServiceNowGuru article - http://www.servicenowguru.com/scripting/gliderecord-query-cheat-sheet/
Look for the "setWorkflow" section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 08:53 AM
You can use "gr.setWorkflow(false);" in your script to disable Business Rules.
Check out Mark Stanger (Crossfuze)'s ServiceNowGuru article - http://www.servicenowguru.com/scripting/gliderecord-query-cheat-sheet/
Look for the "setWorkflow" section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 09:12 AM
The "autoSysFields" is a very useful feature as well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-31-2014 09:47 AM
Thanks that will help a TON!! i am toying with this in my sandbox before i do it in dev so i can then update all client scripts/br's and policies for the push to prod.. have a week or so to work on it.. but a bit of a pain!