title: Salesforce: Moving custom object with data to contact after lead to contact conversion?
body: <p>I have some leads which have a custom browsing activity object which stores the links they browse through. When I convert a lead to a contact, everything except the custom object gets transferred over. Is there a way to import that custom object with the data after conversion either through triggers or c# code?</p>
  
  <p>Any help would be appreciated. Thanks</p>
  
  <hr>
  
  <p>Thank you for your response.
  This is what I have so far. I am unable to get the browsing data; it only gets the ID related to that activity. I am getting the Id and browsing data which is the Browsing_History__c from the Lead.</p>
  
  <p>Do I need to create a new object to hold it and then insert?</p>
  
  <pre><code>trigger ConvertLead on Lead (after update) 
  {
  if (Trigger.new.size() == 1)
  {
      if (Trigger.old[0].isConverted == false &amp;&amp; Trigger.new[0].isConverted == true)
      {
          // if a new contact was created
          if (Trigger.new[0].ConvertedContactId != null) 
          {
  
              for(Web_Browsing__c wb_old : [Select Id, Browsing_History__c from Web_Browsing__c where Lead__c= :Trigger.new[0].id])
              {
  
                  Web_Browsing__c wb = new Web_Browsing__c(); 
                  wb.Contact__c = Trigger.new[0].ConvertedContactId;
                  //Get browsing data
  
                  insert wb;
              }
          }
  
      }
  }
  </code></pre>
  
  <p>}</p>