How to use foreignSysPersonId and foreignsysType? | Community
Skip to main content
January 23, 2014
Solved

How to use foreignSysPersonId and foreignsysType?

  • January 23, 2014
  • 5 replies
  • 1984 views
Hi 

The foreignsysType support CUSTOM , NETSUITE and SFDC. Currently i have test SFDC, it is working well.
Who can tell me how to test the others.

How to test The CUSTOM?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by
Custom would be a value from an external system such as Record ID from a Content Management System as Drupal.

Marketo Id takes precedence over all other keys. If both ForeignSysPersonId and the Marketo Id are present in the lead record, then the Marketo Id will take precedence and the ForeignSysPersonId will be updated for that lead. If the only ForeignSysPersonId is given, then it will be used as a unique identifier.

At present, ForeignSysID is never returned in getLead or getMultipleLeads operations, so you cannot read this value through the API 
 
You can set those ForeignSys field values with syncLead/syncMultipleLeads and then reference leads with that stored ForeignSysID.
 

5 replies

Accepted solution
January 23, 2014
Custom would be a value from an external system such as Record ID from a Content Management System as Drupal.

Marketo Id takes precedence over all other keys. If both ForeignSysPersonId and the Marketo Id are present in the lead record, then the Marketo Id will take precedence and the ForeignSysPersonId will be updated for that lead. If the only ForeignSysPersonId is given, then it will be used as a unique identifier.

At present, ForeignSysID is never returned in getLead or getMultipleLeads operations, so you cannot read this value through the API 
 
You can set those ForeignSys field values with syncLead/syncMultipleLeads and then reference leads with that stored ForeignSysID.
 
March 12, 2014
Hi Breno Gomes,

Will ForeignSysPersonId AND ForeignSysType return when we  do SyncLead operation?
We set the return lead ' s value to true.

But we didn't get value of those field.
Could you confirm that?
April 8, 2014
Breno, et al -

Taking a deep breath and counting to 10 :).  But in all seriousness, not being able to view or retrieve ForeignSysPersonId either through the UI or the API is a serious problem.  It's not a nice to have, it's a MUST have - confirmed by the sheer number of questions about ForeignSysPersonId on these forums.  And compounded by the fact that the documentation doesn't say anywhere that the values are not returned via the API.  But wait... the attributes are returned, except they are null!

Totally get that APIs are rarely complete or perfect...  but this one should be considered a bug and not a feature.

Thanks
June 25, 2014
Our company also considers the non return of foreign sys id to be a bug in the Marketo API.  The documentation CLEARLY details that it should be returned but it is not.

Escallation has not provided any fix as yet and we are at a loss as to how to best get this issue resolved.

Additionally, we can not find any documentation on whether the foreign sys id is over written when the lead is synced with Salesforce.  We suspect that this is the case and testing will prove it out.
July 10, 2014
"At present, ForeignSysID is never returned in getLead or getMultipleLeads operations, so you cannot read this value through the API"

That sentence made me a little angry.  Why not?