- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-17-2024 11:47 PM
I want to make some changes to bulk records say using Background script. During that time, I dont want to trigger any of the Business rules (before, after and async).
Is it possible?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 10:46 AM - edited 06-18-2024 10:47 AM
Hello Suggy,
That's right the setWorkflow(false) doesn't prevent async business rule. You can either disable it, set it to after, or change your script so that this business does not get triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 12:08 AM
Hello @Suggy ,
Use below lines last in your background script:
gr.autoSysField(false);
gr.setWorkflow(false);
Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!
Thank you!!
Dnyaneshwaree Satpute
Tera Guru
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 10:22 AM
That will not stop running the Async BR 🙂 @Dnyaneshwaree
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 10:46 AM - edited 06-18-2024 10:47 AM
Hello Suggy,
That's right the setWorkflow(false) doesn't prevent async business rule. You can either disable it, set it to after, or change your script so that this business does not get triggered.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-18-2024 10:40 AM
Hi @Suggy ,
You can either use gs.isInteractive() condition in every other BR
or
You can use current.setWorkflow(false) in current BR which will prevent the other BRs to run.
If I could help you with your Query then, please hit the Thumb Icon and mark it as Correct !!
Thanks & Regards,
Sumanth Meda