- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2017 03:00 PM
I am trying to run a fix script to set a new custom flag on all of my requested items and requests from false to true.
However, when I run my fix script, it seems to cause workflows to run, notifications to kick off,. etc.
I don't want this to happen when I run the script, is there any easy way to avoid this?
Here is what I have so far:
Fix Script |
---|
//Get all requested items which are IT=false and for which the catalog item is part of the catalog "Service Catalog" //Get all requests which are IT=false and which have a requested item which has IT=true // Where the request contains associated RITMs |
Solved! Go to Solution.
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2017 03:28 PM
Nevermind.
Looks like the below was actually effective in preventing other events from firing etc:
ritm.setWorkflow(false); //Do not run business rules
ritm.autoSysFields(false); //Do not update system fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-01-2017 03:28 PM
Nevermind.
Looks like the below was actually effective in preventing other events from firing etc:
ritm.setWorkflow(false); //Do not run business rules
ritm.autoSysFields(false); //Do not update system fields