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
AichaSFAichaSF 

convert lead to opportunity only

Hello, 

How can I convert Lead to only Opportunity. (but not Account and Contact) with apex
Khan AnasKhan Anas (Salesforce Developers) 
Hi Aicha,

Greetings to you!

There is no way you can stop Account creation on Lead conversion. The whole point of lead conversion to create Account so as to ensure the business is taking place with the customer. However, you can delete Account and Contact after the conversion.

Please refer to the below link which might help you further with the above requirement.

https://developer.salesforce.com/forums/?id=906F000000093GYIAY

I hope it helps you.

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Thanks and Regards,
Khan Anas
Deepali KulshresthaDeepali Kulshrestha
Hi AichaSF,

On the lead conversion screen, it gives you the option to either create the Lead and Contact under an Existing Account or to create a new one.  The system takes the first crack at guessing what Account you might want to add it to, but you can use the lookup to add to anything

I suggest you visit this link, it will help you 

https://success.salesforce.com/answers?id=90630000000CwsUAAS

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,

Deepali Kulshrestha.

 
Ajay K DubediAjay K Dubedi
Hi AichaSF,

There is no any option to convert lead only Opportunity because Leads converts into an account and contact,
as well as (optionally) an opportunity.
Yes, but after creation you can delete account to query on Opportunity.

Please refer to the below link which might help you further with the above requirement.
https://developer.salesforce.com/forums/?id=906F000000090InIAI
      
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks,
Ajay Dubedi