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
sfdc_syedsfdc_syed 

How do i merge contacts record by using trigger?

Hi All,

 

How do i merge contact record by using trigger,i.e already existing record

 

Thanks

 

bob_buzzardbob_buzzard

Are you looking to determine that a record is a duplicate and thus merge at the point of insertion?  I'm pretty sure that in the current version of the API you can't do that - you'd essentially be trying to delete a record as soon as it is inserted.  

 

Have you identified the criteria for deciding that a record is a duplicate?

 

My preference is to provide a mechanism for users to search for a contact before creating, rather than letting them go through the create process and whipping the contact out from underneath them.