Skip Business Rule

goswami_sudipta
Mega Expert

Hello--

Is there anyway to run a business rule while importing data to that table through import set, but at the same time bypass the same business rule while loading data through webservice?

I used isInteractive() which bypasses the BR while loading data into that table through webservice, but it also skips that BR while using import set data load. I wanted to bypass the BR while using webservice, but would like to execute that BR through import set data load.

Please suggest if there is any way to achieve this.

Thank you!

Brad Tilton (Cloud Sherpas)

Jim Coyne

Kirtiman Banerjee

Nisheeth Mishra

3 REPLIES 3

Kalaiarasan Pus
Giga Sage

if there is any unique data or field value between the web service and import set data , you can specify that in the condition ... Like the created by field , as for web service it could point to a particular user account...


Thanks Kalaiarasan, Actually we are looking for something out of the platform like gs.getSession.isInteractive(), so that if we have any other interfaces built in future, we don't have to touch the BR again.


In case we don't get any other alternate way then we will surely have to rely on field values to filter the web service call.


cwhaley
Kilo Expert

It isn't as elegant of an option, but you could just use two different import sets and transforms.   One would be for importing manually (with run business rules checked) and one for the web service (with run business rules unchecked).