1

Normally, if you want to do operations on other objects, you should use after trigger. See this post. Also best practice is to have only one trigger per object, and put your logic into Apex class(es). For example: trigger OpportunityTrigger on Opportunity ( before insert, before update, after insert, after update, before delete, after undelete) { ...


Only top voted, non community-wiki answers of a minimum length are eligible