Is there a way to disable business rule in transform script ?

Dinesh9
Giga Contributor

Hi All, 

I want to disable some of the business rules while adding relationships data. I have used Run Business rule as false but it disabled all the business rule and i want some business to be enabled. So is there a way to disable some of the business rule in transform map.

 

Thaks,

Dinesh

6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

Hi Dinesh,

that is not possible; you cannot disable some BR and make other runs

Either all business rules will be disabled or enabled

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi Ankur,

 Is there a way to disable Business Rules in the Transform script ?

Thanks,

Dinesh

Hi Dinesh,

 

As Ankur updated there isn't any option. Its either all or none. In case you want few to be executed you can do some forceful updates from list view on the records after transform is complete for which you want business rules to trigger.

Hi Dinesh,

to disable all BR already there is checkbox of Run business rule -> keep that as false

if you still want BR to run you can use onafter transform script which would run for every row and

use target.update() and check whether it triggers relevant BRs

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader