5 Replies Latest reply on Sep 19, 2013 1:29 AM by 8442

    How to create a Lead with Custom id

      I would like to use one of my custom SFDC field as foreignSysPersonId  for creating/updating leads.
      say SFDC field name is "Domain_Name__c"  which stores domain name for a customer.

      A customer can register any number of domains with same email id, hence domain name is the only suitable candidate for uniquely identifying the leads.

      I am setting doing following in my java code -


      this lead gets created . next time when I create another lead with same email id and different domain name the old lead gets updated.


      I am passing email as set of attributes while creating a new lead record.
      attrs.put("Email" , "dx@xx.com");

      looks like email is still taking precedence over ForeignSysPersonId.  Am I doing anything wrong here ?