Created
September 25, 2013 11:10
-
-
Save noeticpenguin/6698156 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void afterUpdate() { | |
this.bypass('AccountTriggerHandler'); //yeah, if you could just ignore that accountTrigger, *that'd be great* | |
acc.Name = 'No Trigger'; // wait! where'd acc come from? … just keeping you on your toes. | |
update acc; // won't invoke the AccountTriggerHandler | |
this.clearBypass('AccountTriggerHandler'); // actually, yeah. need you run that accountTrigger. | |
acc.Name = 'With Trigger'; | |
update acc; // will invoke the AccountTriggerHandler | |
} //example lifted from github |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment