function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
frzfrz 

Trigger to Update Existing Record With New Record

HIiii Guys...

I have a cusom object Client__c  with three field  field Email__c,Examiner,and Notification__c. in this object there are many records.my scenarion is that if any new record create and if the email__c is match with any existind record email__c then i want to update the two other field Examiner__c and Notification__c of existing record. that means i want to override the existing record field with new record on the basis of email...

for this i have written trigger.but it is not working. m stuck in this and i am also new in apex trigger

 

please help me,what logic should be apply in this trigger..

 

thanks in advance...........please help !!!!!

Andrew WilkinsonAndrew Wilkinson

Can you post your code?