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

Account Merge feature when convertin

I have a trigger on Lead which converts to an account/contact and opportunity  based on field update. The issue i am having is its creating a new account every time its getting converted even if the account already exists. Is there a way to merge the account if it  exits instead of creating a new one.


Appreciate all the help!!




What do you mean by Account Already Exist?


When the Lead converted Account , Contact and opportunity should create Every time.

Then Lead will get Delete after conversion.

So there is no chance to create Another New Account for that Lead.


Send your code or Explain clearly.





Suppose i already have an Account "ABCD" in my instance. When i am converting a Lead with the Account "ABCD" its creating a new Account With the "ABCD"  instead of creating an opportunity  on the old one. As a result i am having two accounts with "ABCD" name.

Hope this explains my issue.



Generally it will cerate 

But if you want to avoid that write validation Rule...


But it won't solve your problem....


You should write a trigger and check with all account then you ca do the process....