Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- trigger CustomerSuccessTrigger on DEPRECATE__Customers__c(after insert) {
- List<DEPRECATE__Customers_Backup__c> customerList = new List<DEPRECATE__Customers_Backup__c>();
- for(DEPRECATE__Customers__c customers : Trigger.new){
- DEPRECATE__Customers_Backup__c bckup = new DEPRECATE__Customers_Backup__c();
- bckup.Name = customers.Name;
- bckup.DEPRECATE__City__c = customers.DEPRECATE__City__c;
- customerList.add(bckup);
- }
- insert customerList;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement