Skip to content

Instantly share code, notes, and snippets.

@msrivastav13
Last active August 29, 2015 14:02
Show Gist options
  • Save msrivastav13/03a6925e9c808a2f9019 to your computer and use it in GitHub Desktop.
Save msrivastav13/03a6925e9c808a2f9019 to your computer and use it in GitHub Desktop.
trigger ContactTrigger on Contact (after delete, after insert, after undelete,
after update, before delete, before insert, before update) {
if(trigger.isAfter && trigger.isInsert){
Map<String,List<Contact>> mapIdByList=ParentChildMapHelper.buildGeneralisedMap('AccountId',trigger.new);
system.debug(mapIdByList);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment