+ Start a Discussion
KMK91KMK91 

Get contact after convert Lead

Hi All,
Through custom coding and not a configuration.
I want to Map Contact to Opportunity Custom field while converting Lead.
I'm able to map Existing contact and Account name but after conveting Lead newly created contact i need to Map.Please any one have any Idea?


Thanks
KMK
Best Answer chosen by KMK91
Rajesh3699Rajesh3699
Hi 

Can you elaborate your question..?

as per my understanding I have given some suggession, may this helps you,

1. Cretate a trigger in the lead object
2. Check if the lead is converted or not
3. If converted, get the account, contact, & opportunity records from the below fields of the lead
4. Map the new contact and new opportunity in the code 

ConvertedAccountId
ConvertedContactId
ConvertedDate
ConvertedOpportunityId
IsConverted
Status

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_lead.htm

Thank You,
Rajesh Adiga P


 

All Answers

Rajesh3699Rajesh3699
Hi 

Can you elaborate your question..?

as per my understanding I have given some suggession, may this helps you,

1. Cretate a trigger in the lead object
2. Check if the lead is converted or not
3. If converted, get the account, contact, & opportunity records from the below fields of the lead
4. Map the new contact and new opportunity in the code 

ConvertedAccountId
ConvertedContactId
ConvertedDate
ConvertedOpportunityId
IsConverted
Status

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_lead.htm

Thank You,
Rajesh Adiga P


 
This was selected as the best answer
KMK91KMK91
Thank you Rajesh