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

Convert lead with two contacts

In my organizations we enter two contact information (Primary and Secondary) with new leads . My question is :

How do I create two related Contact records with same Account on lead conversion.



Jeff MayJeff May

Lead Convert will only create a single Contact record.  If you need a second, you'll have to go the programming route (which will be tricky since the "rules" for the second Contact might be difficult).

You can do using trigger However as mentioned by Jeff, it will be tricky because it may cause error.. Every Contact will try to create new Contact after Insert so you need to maintain one field on Parent Contact to track that other contact is already created.

Thank You.