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
uzma khanuzma khan 

old lead field update when new lead comes with same email .

Hi Everyone ,
 we have lead object in which we have email , source , status , phone , name ..e.tc So i want whenever new lead comes first check email with old records if the email is exist just update the old record with new lead source field . and if the email doesnot exist create new lead with all fields.

plz Help...
venkat-Dvenkat-D
You can certainly update existing old ones and allow non duplicate ones to be created. The only problem will be you have to throw an error to new records coming into system with error saying Duplicate record exists and its updated. You can not simply ignore those after updating duplicate records.
uzma khanuzma khan
HI Venky 
Thnk you so much for the reply , Do i need to write the code for it ?