You need to sign in to do that
Don't have an account?
Developer_shaan
Making a trigger ineffective on system.schedule call
Hi,
I have an apex class which implements system.schedule method .
Within this i call another class which does some update functionality on contact page.
My issue over here is that an update trigger is written for other calculations on the object . i want the trigger not to be fired when the system.schedule method is called.
Is there any soln for this.
If yes please let me know.
thanks
shaan
If updating the object in your code is mandatory and you want the trigger not to be fired on that, then its not possible.
One way of achieving this could be by creating a new custom field on the contact object and have a check in the code.
Please let me know if you need further details.
what kind of checking do we need to do with the custom field.
Instead of that i have declared a global variable of boolean type in trigger and made it false.
The trigger will fire whenever the variable is false. but will not fire or fails when the variable is made true.
Its working when clicked on save button from VF page. But its not working with system.schedule metthod.
can you please explain clear how to avoid the trigger being fired from the apex code.