Salesforce Q&A Part 5:
Customization Part 1: Trigger: Q) Explain Trigger and its flow. Ans . Apex Triggers are event handlers. When a record associated with the trigger is inserted, updated, deleted, or un-deleted the Salesforce.com system will "fire" or execute the trigger event. Salesforce executes a trigger in two different contexts: before and after. Before-trigger events are executed before a record has been committed to the database, while after-trigger events are executed after a record is committed to the database. Events before/after(insert, update, delete) and after un-delete. Events helps in defining the criteria for trigger to run. Within the scope of trigger we define the Trigger context variable like isInsert, isUpdate, isDelete, isUndelete, isAfter, isBefore, isExecuting, new, newMap, old, oldMap and size. With deceive context variable we call for helper classes and pass the parameter to those classes(all logic implementation is carried ...