User:Danielharotrade

FFLIB Cliff Notes: Trigger Implementations: public virtual void onBeforeInsert { } public virtual void onBeforeUpdate(Map existingRecords) { } public virtual void onBeforeDelete { } public virtual void onAfterInsert { } public virtual void onAfterUpdate(Map existingRecords) { } public virtual void onAfterDelete { } public virtual void onAfterUndelete { }

//Handlers public virtual void handleBeforeInsert public virtual void handleBeforeUpdate(Map existingRecords) public virtual void handleBeforeDelete public virtual void handleAfterInsert public virtual void handleAfterUpdate(Map existingRecords) public virtual void handleAfterDelete public virtual void handleAfterUndelete

Trigger Imp: Domain class: use Implementation tag example: public override void onBeforeInsert                                                                                                                                              {OpportunitiesService.handleBeforeInsert(Records); }

Implementation class:
public override void onBeforeInsert(List records) {

//business logic goes here

}