Activity Forums Salesforce® Discussions How can we activate/ deactivate trigger/ validation rule and workflow using Salesforce Apex Code?

  • Prafull

    Member
    February 13, 2018 at 10:58 am

    Hi Rahul,

    Practically this is not possible directly using apex code. But there is another way to do this.

    You can create a custom label or custom setting with checkbox which can be updated using apex code and you can implement condition to fire Validation rule or workflow with checkbox true else this will not fire if condition will be false.

    Hope this will help you.

    Thanks,

    Prafull

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos