Re: What is the SOAP attribute key for "ForeignSysPersonID"?

Anonymous
Not applicable

What is the SOAP attribute key for "ForeignSysPersonID"?

I'm trying to use SOAP "syncLead" to save a lead using the ForeignSysPersonID.  However, Marketo is rejecting it.

This is in my request:

          <attribute>
           <attrName>ForeignSysPersonID</attrName>
           <attrValue>aaa</attrValue>
           <attrType>string</attrType>
         </attribute>
         <attribute>
          <attrName>ForeignSysType</attrName>
          <attrValue>CUSTOM</attrValue>
         <attrType>string</attrType>
       </attribute>


Marketo's response is:

    <message>syncLead operation failed: unknown fields for import: ForeignSysPersonID, ForeignSysType (20105)</message>


Am I using the wrong name for the attribute's key?

(I gotta be honest, Marketo crew, the ForeignSysPersonID feature seems pretty broken.  If it actually works, you guys really need to improve the documentation.)

Tags (1)
5 REPLIES 5
Anonymous
Not applicable

Re: What is the SOAP attribute key for "ForeignSysPersonID"?

Two issues with your call:

1 - foreignSysPersonId is case sensitive. The f and d in "
foreignSysPersonId" are lower-case. 

2 - foreignSysPersonId is not passed as an attribute. Please follow the request XML format below. 


  1. <leadRecord>
  2. <leadId>1090240</leadId>
  3. <foreignSysPersonId>1224191</foreignSysPersonId>
  4. <leadAttributeList>
  5. <attribute>
  6. <attrName>Company</attrName>
  7. <attrValue>Marketo1000</attrValue>
  8. </attribute>
  9. <attribute>
  10. <attrName>Phone</attrName>
  11. <attrValue>650-555-1000</attrValue>
  12. </attribute>
  13. </leadAttributeList>
  14. </leadRecord>


I understand your frustration here, and I am rewriting the developer docs to better explain this issue. 
Anonymous
Not applicable

Re: What is the SOAP attribute key for "ForeignSysPersonID"?

Please let me know after you make the changes above if your API call works? 
Anonymous
Not applicable

Re: What is the SOAP attribute key for "ForeignSysPersonID"?

Just so you know, the documentation for syncLead is not clear on the correct capitalization of "foreignSysPersonId".  In fact, the correct capitalization does not appear at all on the page.
Anonymous
Not applicable

Re: What is the SOAP attribute key for "ForeignSysPersonID"?

Thanks for pointing this out! Just updated the syncLead docs page to clarify capitalization issue. 
Anonymous
Not applicable

Re: What is the SOAP attribute key for "ForeignSysPersonID"?

Thanks.

On a related topic... Can I retrieve Leads using a foreignSysPersonId?

The getLead docs don't say I can, so I can only assume I can't.  It's frustrating being able to write something but not read it back.
http://developers.marketo.com/documentation/soap/getlead/