Is there a way to stop processing additional business rules?

Mike Hill1
Giga Contributor

I am looking for a way to add code or a condition to a business rule such that it prevents further business rules and their code from running.   I remember seeing something like this in the past but am having a difficult time locating the code or trigger to do this.  

Lets say I have 3 business rules on the incident table.   They have Order 10, 50, 100 and they all only trigger before an 'Update' to a record on the table.

Is there a way to have the business rule at order 50 have a condition or section of code when true that prevents the order 100 business rule from running at all?

1 ACCEPTED SOLUTION

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Michael,



Use of setWorkflow disables the running of BR. More info here.


http://wiki.servicenow.com/index.php?title=GlideRecord#setWorkflow&gsc.tab=0


View solution in original post

5 REPLIES 5

Pradeep Sharma
ServiceNow Employee
ServiceNow Employee

Hi Michael,



Use of setWorkflow disables the running of BR. More info here.


http://wiki.servicenow.com/index.php?title=GlideRecord#setWorkflow&gsc.tab=0


Hi folks.  I see that everyone is referring here to the following site:

wiki.servicenow.com

Does that still exist?  If so, where was it moved to, please?

Any insight would be appreciated.  Thanks!

https://web.archive.org/web/20170823085412if_/http://wiki.servicenow.com/index.php?title=Main_Page#gsc.tab=0   This gets you to the main page.

 

https://web.archive.org/web/20170821025212if_/http://wiki.servicenow.com/index.php?title=GlideRecord#setWorkflow&gsc.tab=0   This gets you to the link as noted above 🙂