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
Andrew Hoban 6Andrew Hoban 6 

Converting a lead to a custom object?

Hi all,

I was wondering if it is possible to convert a lead into a custom object? I am creating a web-to-lead form which has feilds that relate to a custom object.
Andrew Hoban 6Andrew Hoban 6
Thanks for your reply. 

This refers to a force.com page, I am using a normal salesforce instance. Is this still the same? Instead of the normal conversion to an account I need the fields to map to a custom object. 

Thank you
Anoop yadavAnoop yadav
Hi,
If you want to create a custom record on convering the lead.
You can go with Trigger.
Check the below link.
https://mindfiresfdcprofessionals.wordpress.com/2013/08/07/trigger-on-lead-conversion-process-in-salesforce/
 
John PipkinJohn Pipkin
As well as using a trigger, you can fully customize the lead conversion process by using an apex class that can be called from a onclick javascript button by using ConvertLead() method followed by any custom logic afterward.