You need to sign in to do that
Don't have an account?
Salesforce Dev in Training
Custom Object Mapping when Lead converts to a Contact
Hello SF Dev Community,
I hope everyone had a great weekend! I am trying to map a custom object from a Lead to a Contact when that Lead is converted. I see that it's an "Idea" posted and most of the comments say it's an easy fix with Apex coding, however, as a non-profit organization, it's tough sometimes to afford high-end development. I wasn't certain if this easy fix is something I could do as I've recently started to learn Apex coding. Any thoughts or instructions would greatly help.
Thank you,
AB
Thanks for confirming. Please paste below mentioned trigger code for accomplishing this functionality. The trigger will be on lead:
All Answers
As per my understanding by going through your above statements, there is a custom object which is related to Lead. On conversion of lead, you want some fields of this custom object should be mapped with created Contact. Please correct me if I am wrong. If so, this is doable by Apex.
Thanks for the clarifications. Can you please confirm one last thing that you want to put blank value in Lead lookup field on related Survey object record and want to keep the value of Contact intact post lead conversion?
If so, this can be easily done using trigger approach as workflow and process builder approach are getting failed here.
Thanks for confirming. Please paste below mentioned trigger code for accomplishing this functionality. The trigger will be on lead: