What is the SOAP attribute key for "ForeignSysPersonID"? | Community
Skip to main content
July 10, 2014
Question

What is the SOAP attribute key for "ForeignSysPersonID"?

  • July 10, 2014
  • 5 replies
  • 1335 views
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.)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

July 10, 2014
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. 
July 10, 2014
Please let me know after you make the changes above if your API call works? 
July 11, 2014
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.
July 11, 2014
Thanks for pointing this out! Just updated the syncLead docs page to clarify capitalization issue. 
July 11, 2014
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/