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
bujjibujji 

Restrecting Creation Of Contact

Hi Guys,

 

I am able to convert the lead into account and Contact using trigger.
But i don't want Contact Creating how restrict that.

 

Do we have any functions like setDoNotCreateOppurtunity(); for Contact also.

 

Thanks,

Bujji

crop1645crop1645

LeadConvert will create the Contact (or update an existing one)

 

If you are executing the Database.convertLead method, then upon return, use the LeadConvertResult object to locate the ContactId and delete it.

sfdcconsultant2010sfdcconsultant2010

There is no equivalent method for contact which can prevent the creation/updation of contact but if you want you can delete the contact in your code.