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
prady-cmprady-cm 

Convert lead through apex but should not create opportunity

Hi,

 

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?

 

Thanks