Skip to content

Instantly share code, notes, and snippets.

@miragedeb
Created July 17, 2015 16:24
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 miragedeb/0ef8f887bd6c14f678bf to your computer and use it in GitHub Desktop.
Save miragedeb/0ef8f887bd6c14f678bf to your computer and use it in GitHub Desktop.
trigger MasterContactTrigger on Contact(
before insert, after insert,
before update, after update,
before delete, after delete) {
if (Trigger.isBefore) {
if (Trigger.isInsert) {
//Transfer all newly created contacts to SFDC99 Account
TransferContact tfc = new TransferContact(Trigger.new);
tfc.assignToAccount();
}
if (Trigger.isUpdate) { }
if (Trigger.isDelete) { }
}
if (Trigger.IsAfter) {
if (Trigger.isInsert) { }
if (Trigger.isUpdate) { }
if (Trigger.isDelete) { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment