Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. List<Lead> leadList = new List<Lead>();
  2. if(Trigger.isInsert){
  3. if(Trigger.isBefore){
  4. //process before insert
  5. for(Lead l : trigger.New){
  6. l.Company = l.Status;
  7.  
  8. }
  9.  
  10. }else if(Trigger.isAfter){
  11. //process after insert
  12.  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement