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
wilbur07wilbur07 

Lead conversion to Account Opportunity and Contact

There's a lead conversion button that converts a lead into a contact with a new account.

I need to propagate field values from the lead (which is deleted or made inactive) to the account and to the newly created contact.

Where should I write the trigger, and how do I access the lead object if it is deleted?

Is it a trigger on Leads after delete?

Or a trigger on Accounts before insert?  How do I reference the Lead in this case?

Do I need to write another trigger on Contact before insert as well?

Thanks for any help.

James
SiriusBlackOpSiriusBlackOp

Have you tried using the Conversion Mapping Settings found on the Lead Fields page.

Goto: Setup/Customize/Leads/Fields.

Scroll to the bottom and click the "Map Lead Fields" button.