Stop CRM 2011 'setstate' from Running RRS feed

  • Question

  • Is there a way to stop a system job from running? Currently the CRM 2011 preforms a check 'expireson' date attribute if the current date is past the 'expireson' date the system expire the contract. Once the Contract has 'expired', it becomes Read Only. We need this system job not to run. 
    Tuesday, February 18, 2014 5:12 PM

All replies

  • You can write a plugin that captures the state change, implements your validation logic, then throws an exception if validation is not met.  That should cause the state change transaction to roll back.  Of course your user will see a 'Business Process Error' as a result.

    An alternative would be to disable or lock the Activate/Deactivate buttons on the Entity's Ribbon Bar.

    Tuesday, February 18, 2014 8:11 PM