SetWorkflow(false) not working when called from client callable script includes from reference qual
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 08:42 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 08:52 AM - edited 08-07-2023 08:53 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 04:45 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 05:40 AM
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.