Advertisement
martyychang

ProcessOpportunities trigger

Feb 18th, 2014
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.20 KB | None | 0 0
  1. /*
  2.  * Master trigger for processing Opportunities during DML operations
  3.  */
  4. trigger ProcessOpportunities on Opportunity (
  5.     before insert, after insert,
  6.     before update, after update,
  7.     before delete, after delete
  8. ) {
  9.    
  10.     // Process records before an after an insert operation
  11.  
  12.     if (Trigger.isInsert) {
  13.  
  14.         if (Trigger.isBefore) {
  15.  
  16.         }
  17.  
  18.         if (Trigger.isAfter) {
  19.            
  20.         }
  21.     }   // if (Trigger.isInsert)
  22.    
  23.     // Process records before an after an update operation
  24.  
  25.     if (Trigger.isUpdate) {
  26.  
  27.         if (Trigger.isBefore) {
  28.  
  29.         }
  30.  
  31.         if (Trigger.isAfter) {
  32.            
  33.         }
  34.     }   // if (Trigger.isUpdate)
  35.    
  36.     // Process records before an after a delete operation
  37.  
  38.     if (Trigger.isDelete) {
  39.  
  40.         if (Trigger.isBefore) {
  41.  
  42.         }
  43.  
  44.         if (Trigger.isAfter) {
  45.            
  46.         }
  47.     }   // if (Trigger.isDelete)
  48.    
  49.     // Process records before an after an undelete operation
  50.  
  51.     if (Trigger.isUndelete) {
  52.  
  53.         if (Trigger.isBefore) {
  54.  
  55.         }
  56.  
  57.         if (Trigger.isAfter) {
  58.            
  59.         }
  60.     }   // if (Trigger.isUndelete)
  61. }   // trigger ProcessOpportunities
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement