+ Start a Discussion

Convert lead through apex but should not create opportunity



I am doing a lead conversion thorugh apex. When the lead is converted it should only create account and contact and should not create opportunity.


I am having a new VF page to override the standard conversion page. But how can i make sure that opportunity doesnt get created. We have a checkbox to prevent opportunities to created from the UI, how can i incorporate it in my VF page?