How to to stop running one particular Business Rule during insert on any table?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2015 09:58 PM
Hi All,
I have a script written in inbound actions which takes care of inserting new record into sc_req_item table , i would like to stop running one particular business rule during this insert.
as far i know the method setWorkflow(false); is going stop running all the business rules which are written for "before insert" action on sc_req_item table.
current.setWorkflow(false);
current.insert();
How to to stop running one particular Business Rule during insert? , for instance like : current.setWorkflow("Business rule name", false);
Thanks & Regards
Yogesh Dafedar

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2015 10:10 PM
Hi Yogesh,
If you have any unique field on the form then you can use this as part of the condition on the BR. By that way you can get the control.
Please let me know if you have any questions.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2015 11:20 PM
Hello Pradeep,
There is no as such a field , so that i could validate the field first as a condition and then disable the workflow.
But i may use the fields like, description and the short_description field of the sc_req_item table.
The scenario is , before i insert the description and the short_description field's values to the sc_req_item table which i get from inbound action emails, i have 2 business rules which fills these two values from CMS portal order submission method during before insert, these two business rules are inevitable when users submit the req items through CMS portal.
But i have to disable these two BR's when i submit the request using the inbound action method emails.
So, as you were saying is it possible to disable any particular one or two BR's when required to?
Br/YD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2019 09:51 PM
Hi,
I am facing the same condition. I want to stop a perticular business rule that is executing through another table business rule gliderecord.
Kindly suggest the possible solution. I cant use setWorkflow("false").

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-05-2019 10:22 PM
You might need to update that particular business rule and update its conditions.