LastUpdateAtSelector Problems with getMultipleLeads

Lisa_Lazzaro
Level 1

LastUpdateAtSelector Problems with getMultipleLeads

I'm trying to get the leads that were changed for a specific date.  Like below.

$leadSel->oldestUpdatedAt = '2014-08-25T00:00:00-05:00';
$leadSel->latestUpdatedAt = '2014-08-25T23:59:59-05:00';
$leadSelSoap = new stdClass();
$leadSelSoap = array("leadSelector" => $leadSel);
$leadSelSoap = new SoapVar($leadSel, SOAP_ENC_OBJECT, $selector, "http://www.marketo.com/mktows/");
$params->leadSelector = $leadSelSoap;
$params->batchSize = 100;

If I look in the Marketo UI there are 5 leads for this date but the call returns over 10,000.  If I do the same call for yesterday the UI shows 20 leads and the API return 10.  
Tags (1)
4 REPLIES 4
Anonymous
Not applicable

Re: LastUpdateAtSelector Problems with getMultipleLeads

Hmm, weird.  I don't see anything obviously wrong.

Support is very good at troubleshooting these things- usually what helps is to get the actual XML request and response. They can compare that to the data and make suggestions about what might be incorrect there (or if we have a bug we'd fix it)
Lisa_Lazzaro
Level 1

Re: LastUpdateAtSelector Problems with getMultipleLeads

Found the problem
Anonymous
Not applicable

Re: LastUpdateAtSelector Problems with getMultipleLeads

Great!
Anonymous
Not applicable

Re: LastUpdateAtSelector Problems with getMultipleLeads

I am curious, what was the issue?

For other viewers of this thread, we have blog post on how to find leads that were updated on specific date ranges:
http://developers.marketo.com/blog/find-leads-updated-on-specific-date-ranges/