Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@noeticpenguin
Created September 25, 2013 11:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save noeticpenguin/6698156 to your computer and use it in GitHub Desktop.
Save noeticpenguin/6698156 to your computer and use it in GitHub Desktop.
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