You need to sign in to do that
Don't have an account?
XVL
Trigger to Convert Lead to Contact with Custom Object
I need to wrtie a trigger to convert a lead to a contact with a custom object attached to the contact if the lead has field values. For example, if a person signs up for a trial, I need the trial information move to the custom object Trial Information. The fields in the lead section would map to the custom fileds in the custom object. The custom object should only be created if there is a value there.
Lead Fields:
First Name- John
Last Name- Smith
Company- ABC Corp
Trial Name- XYZ Mag
Start Date- 4/12/2014
End Date-4/19/2014
Convert Lead to Contact:
Object: Contact
Custom Object: Trial Information
Lead Fields:
First Name- John
Last Name- Smith
Company- ABC Corp
Trial Name- XYZ Mag
Start Date- 4/12/2014
End Date-4/19/2014
Convert Lead to Contact:
Object: Contact
First Name- John
Last Name- Smith
Object/Field: Account (Company)-ABC CorpLast Name- Smith
Custom Object: Trial Information
Trial Name- XYZ Mag
Start Date- 4/12/2014
End Date-4/19/2014
Start Date- 4/12/2014
End Date-4/19/2014
See the below links,
Idea,
https://success.salesforce.com/ideaview?id=08730000000BrltAAC
An App,
https://appexchange.salesforce.com/listingDetail?listingId=a0N30000003JeOiEAK
Related thread,
https://developer.salesforce.com/forums?id=906F00000008krAIAQ
http://salesforce.stackexchange.com/questions/22846/lead-conversion-to-custom-object
Regards,
Ashish