Advertisement
Guest User

Untitled

a guest
Jan 16th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. trigger CustomerSuccessTrigger on DEPRECATE__Customers__c(after insert) {
  2.  
  3. List<DEPRECATE__Customers_Backup__c> customerList = new List<DEPRECATE__Customers_Backup__c>();
  4. for(DEPRECATE__Customers__c customers : Trigger.new){
  5.  
  6. DEPRECATE__Customers_Backup__c bckup = new DEPRECATE__Customers_Backup__c();
  7. bckup.Name = customers.Name;
  8. bckup.DEPRECATE__City__c = customers.DEPRECATE__City__c;
  9. customerList.add(bckup);
  10.  
  11. }
  12. insert customerList;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement