AnsweredAssumed Answered

SOAP: can't create a lead with a duplicate email address in a different workspace

Question asked by 4ff282762e2329eff66acc6a898c76330a4ee628 on Sep 11, 2014
Latest reply on Sep 15, 2014 by 4ff282762e2329eff66acc6a898c76330a4ee628
I'm finding that the SOAP interface will match existing Leads by email address even when they shouldn't.

Example situation (based on what I tried to do):
     My instance has a Default partition, and an ABC partition.

     The Default partition contains a Lead with email "".  This Lead has no foreignSysPersonID.  Last Name = Keaton.

     I want to create a new Lead with the following properties:
  •           email:
  •           foreignSysPersonID: 1000
  •           Last Name = Kilmer
  •           in partition ABC
     Since Leads do not have to have unique email addresses, I think this should be possible.  You can certainly do it with the online portal.

What I tried:
     I  used the following SOAP (some irrelevant details excluded)

          <SOAP-ENV:Envelope blah blah>



What happens:
     Instead of creating a new Lead in the ABC parition, it modifies the existing lead, changing Keaton to Kilmer, and presumably assiging the foreignSysPersonID to it too.

     Even though I specified a foreignSysPersonId, it matched by Email anyway.

     I even tried moving the email address into the leadAttributeList.  Same result.

     What I'm trying to do is impossible via the SOAP interface.  Even though email addresses aren't unique, Marketo stubbornly wants to look stuff up by email addresses anyway.  (See also: your Munchkin library, which also subbornly uses email addresses as if they were unique).