function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
anchezkaanchezka 

Forbid Workflow Rules Execution from Apex

Hi all,

 

SF import wizard allows users not to trigger wf rules. Is it possible to mimic the same functionality in custom VF page/ Apex class?

 

Thanks

 

bob_buzzardbob_buzzard

I've written a blog post that presents one way to achieve this:

 

http://bobbuzzard.blogspot.co.uk/2011/11/bypass-validation-rules-from-apex.html

anchezkaanchezka

Thanks for your reply. This is an elegant solution and I was glad to read your post. However, we are not the ones who create the rules and we won't be able to edit them. (We are developing a managed package for several different clients and each of them have their own rules.) 

 

I was hoping that there are some properties like DMLoptions (e.g. THIS one), but for workflow rules.