Skip to content

Instantly share code, notes, and snippets.

@suddeb
Created August 2, 2015 15:33
Show Gist options
  • Save suddeb/a58c2bd72a5f440fdfc3 to your computer and use it in GitHub Desktop.
Save suddeb/a58c2bd72a5f440fdfc3 to your computer and use it in GitHub Desktop.
trigger AccountTrigger on Account (before insert,after insert) {
new MyTriggers()
.attach(MyTriggers.Evt.afterInsert, new AccountTriggerHandler.AccountAfterInsertHandler())
.attach(MyTriggers.Evt.beforeInsert, new AccountTriggerHandler.AccountBeforeInsertHandler())
.attach(MyTriggers.Evt.beforeUpdate, new AccountTriggerHandler.AccountBeforeUpdateHandler())
.run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment