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
Glen CubinarGlen Cubinar 

Lead Conversion to Contact

Hi,

I was converting 3 Lead Records to Contact, and when im trying to get ID's of the records having a trigger in contact object with event of after insert I am only getting 1 ID per instance. I was expecting to get the 3 ID's in one instance.  

Best Answer chosen by Glen Cubinar
Sforce.NinjaSforce.Ninja
If you are using 'Convert lead' button on the lead page, each converstion will be considered a separate transaction. Your trigger will run three times. How are you converting the leads? 

You could write code to convert leads, this link will help:

https://help.salesforce.com/HTViewHelpDoc?id=faq_import_leads_mass_convert.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=faq_import_leads_mass_convert.htm&language=en_US)