SOAP: can't create a lead with a duplicate email address in a different workspace
Example situation (based on what I tried to do):
The Default partition contains a Lead with email "batman@gotham.com". This Lead has no foreignSysPersonID. Last Name = Keaton.
I want to create a new Lead with the following properties:
- email: batman@gotham.com
- foreignSysPersonID: 1000
- Last Name = Kilmer
- in partition ABC
What I tried:
<SOAP-ENV:Envelope blah blah>
<SOAP-ENV:Header>
<ns1:AuthenticationHeader>blah</ns1:AuthenticationHeader>
<ns1:MktowsContextHeader>
<targetWorkspace>ABC</targetWorkspace>
</ns1:MktowsContextHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<tns:paramsSyncLead>
<leadRecord>
<foreignSysPersonId>1000</foreignSysPersonId>
<Email>batman@gotham.com</Email>
<leadAttributeList>
<attribute>
<attrName>LastName</attrName>
<attrType>string</attrType>
<attrValue>Kilmer</attrValue>
</attribute>
</leadAttributeList>
</leadRecord>
<returnLead>true</returnLead>
</tns:paramsSyncLead>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Even though I specified a foreignSysPersonId, it matched by Email anyway.
I even tried moving the email address into the leadAttributeList. Same result.
Conclusion: