Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. trigger CustomerTrigger on Customer__c (before update){
  2. list<test__c> updateTest=new list<test__c>();
  3. if(trigger.isupdate && trigger.isbefore){
  4. for(customer__c cust:trigger.new){
  5. test__c t=new test__c(id=cust.test__c,salary__c=cust.salary__c,phone__c=cust.phone__C);
  6. updateTest.add(t);
  7. }
  8. }
  9.  
  10. ERROR: CustomerTrigger: execution of BeforeUpdatecaused by: System.ListException: Duplicate id in list: a1O28000007ZypIEASTrigger.CustomerTrigger: line 10, column 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement