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
yuvraj arorayuvraj arora 

How to Convert lead into account ,contact and opportunity according to record type of both Lead and Acount

Hi everyone,
i am having a issue.. 
let if i have two record type of Leads A and B 
 and two record types for Accounts A nad B ..
so how it is possible to convert lead into account B record type when lead B record type is selected ,
same for A record type of both objects .


Thanks in Advance 
Best Answer chosen by yuvraj arora
Rupali PophaliyaRupali Pophaliya
There is a workaround to map Lead Record Type to Account Record Type. Perform the steps given in this knowledge article: https://help.salesforce.com/apex/HTViewSolution?id=000004455&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000004455&language=en_US)

All Answers

Caleb SidelCaleb Sidel
When you convert a lead it uses the User's default record type (for each of Account and Contact). However you can write a custom convert button using Visualforce. So net is that out of the box you can't, but using custom code you can.
yuvraj arorayuvraj arora
Thanks @caleb 
Trigger or custom convert button ?? which is the better option ?
somasundar avantsasomasundar avantsa
There is no way the standard convert button can be modified to include this functionality. So taking this as a cause, if you add a custom convert button, you may have to add code to do standard convert process + select the account record type 
I wonder how the code in custom button be? Can you please tell...
Rupali PophaliyaRupali Pophaliya
There is a workaround to map Lead Record Type to Account Record Type. Perform the steps given in this knowledge article: https://help.salesforce.com/apex/HTViewSolution?id=000004455&language=en_US (https://help.salesforce.com/apex/HTViewSolution?id=000004455&language=en_US)
This was selected as the best answer
yuvraj arorayuvraj arora

@Rupali You are awesome .. thanks for help it worked