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
EricJRosenbergEricJRosenberg 

Map the Lead Created Date to the Contact

Hi.  I am looking to add the lead created date to the contact record.  I created a custom field on the lead record that creates the created date and then made the same field on the contact record and then mapped them, but the date on the contact field come up blank ever time.  Can someone please help?

BrandiTBrandiT

I'm having this exact same problem today.  Created a formula field that shows Lead Last Modified Date, mapped to a custom date field on accounts.  I can convert the lead, but my date field on the new account is blank. 

 

I could really use some input on this!

Always ThinkinAlways Thinkin

Lead Created Date and Lead Last Modified Date are both DateTime fields. Your descriptions only say that you're mapping the fields to a Date field. Please confirm whether you are mapping the fields to a DateTime field or converting the original Lead fields to a Date value using the DATEVALUE() function.

Pradeep_NavatarPradeep_Navatar

Invoke a trigger on contact for that custom field when lead create date is inserted. Try the sample code given below :

 

        trigger trgcon on contact(after insert,before update)

            {

                 Contact con = trigger.new[0];

                  Lead ld = trigger.new[0];

                 ID id = con.id;

                  ID lid = ld.id;

                  Lead l = [select id ,create_date__c from Lead where id=:lid];

                 con.create_date__c = l.create_date__c;

                 update con;

            }                                 

 

Hope this helps.