- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 03:36 AM
We are developing a servicenow enforcer. And facing a business rule trigger problem.
For example, there are 2 before query business rules, one on incident table, one enforce on caller table.
When incident business rule(filter query) are executing, some code in this BS(business rule) will trigger caller table BS executing.
The "some code" is relate to GlideRecord query, we query caller table( or do join query on calller table).
Anybody ever encounter this problem? How to ignore the BS executing triggered by GlideRecord?
Thanks in advance!
Leo
Solved! Go to Solution.
- Labels:
-
Team Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2017 06:55 AM
thanks for sharing that Ray. I personally was not aware that it will also prevent query business rules.
Using a .setWorkflow(false) to prevent business rules from executing is rarely used because in most cases you want these to execute. For that reason, you have to use it with caution (specially if it doesn't execute query business rules , which also work like acls to restrict what data is retrieved during a query of a table)
Thanks,
Berny
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-27-2017 05:11 PM