SetWorkflow(false) not working when called from client callable script includes from reference qual

rahulyamgar
Tera Guru

Hello friends,

 

We are using the advanced reference qualifier in reports using client callable script includes. Inside the script includes, we are querying CMDB tables and to do so, we are disabling the Query BR using gr.setWorkflow(false). But this is not disabling the Query BR and queries are getting appended. Alternatively, If I call the script includes function using background script, it just works fine disabling the Query BR.

 

Any idea on how to disable the BR in the Script Includes called from report qualifier.


Thanks,
Rahul

3 REPLIES 3

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

setWorkflow’ is used to enable/disable the running of any business rules that may be triggered by a particular update.

 

It wont work on read operation.

 

In your case you may have to find some way to update the query BR condition to skip running for this transaction.

-Anurag

Hello @Anurag Tripathi ,

Thanks for your response. 

I could disable query BR using setWorkflow(false) from background script, but when its called through client side script includes its not working.

 

Thanks,

Rahul

You should not disable BR using script.

Moreover this is not a one time thing right, for one transaction you want to avoid/skip this BR. So you need to add it in the condition of the BR so that when the condition doesn't satisfy the BR doesn't run.

-Anurag