Skip to main content
June 18, 2014
Question

How to search Activities with Lead ids?

  • June 18, 2014
  • 3 replies
  • 886 views

Hi all,

I find that LeadSelector works for getLeadChanges() in SOAP API V2.3, and I try to use a LeadKeySelector instance with IDNUM list (1, 2, 3, 4, 5). But the results contain not only the activites associated specified Lead IDs but also all others.
Is there anything missed? How could I get only the records associated the specified 5 Lead IDs?

Thanks,
Biao

Message was edited by: Biao Huang

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

3 replies

Kenny_Elkington
Adobe Employee
Adobe Employee
June 18, 2014
Hey Biao,

getLeadChanges returns activity log items based on the associated lead IDs.  To return lead records you'll want to use getLead or getMultipleLeads.
June 18, 2014
This functionality is also available through the REST API. Please review the documentation on the developers site:
http://developers.marketo.com/documentation/rest/get-lead-by-id/
June 19, 2014
Hi Kenny E,

I am expecting activity items. I just need to get the activity log items being associated specified Lead IDs.
So, could you please help me to deal with the problem that the LeadSelector does not work for getLeadChanges()?
In my integration, I specify a LeadKeySelector for parameter of getLeadChanges(), but all activities are returned.

Thanks,
Biao