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 -
leadRecod.setForeignSysType(ForeignSysType.CUSTOM);
leadRecord.setForeignSysPersonId("anyDomainName");
this lead gets created . next time when I create another lead with same email id and different domain name the old lead gets updated.
leadRecod.setForeignSysType(ForeignSysType.CUSTOM);
leadRecord.setForeignSysPersonId("SecondDomainName");
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 ?