Need help on Background Script

shaik_irfan
Tera Guru

Hi,

I am running a background script to update a field in Asset table.

 

I am in global scope and kept setWorkflow(false);

 

But i am getting a message that asset table has few business rules running on scope app which are getting triggerd. how can we stop all the BR incuding scoped applicaiton BR's

 

var gr = new GlideRecord('alm_asset'); 
gr.addEncodedQuery("active=true");
gr.setLimit(100);
gr.query();
while(gr.next()){
gr.setValue('state',4);
gr.setWorkflow(false);
gr.update();
}

 

I am getting below message:

 

Cannot disable before query business rule(s) across scope boundaries (current scope: rhino.global table scope: sn_customerservice)
Cannot disable before query business rule(s) across scope boundaries (current scope: rhino.global table scope: sn_customerservice)