Re: How to search Activities with Lead ids?

Anonymous
Not applicable

How to search Activities with Lead ids?

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

Tags (1)
3 REPLIES 3
Kenny_Elkington
Marketo Employee

Re: How to search Activities with Lead ids?

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.
Anonymous
Not applicable

Re: How to search Activities with Lead ids?

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/
Anonymous
Not applicable

Re: How to search Activities with Lead ids?

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