How do I get both new AND updated leads from the API?

Anonymous
Not applicable

How do I get both new AND updated leads from the API?

I'm using the getMultipleLeads API but I'm not quite clear on how to properly use the LeadSelector to export both the newly created leads as well as any that have changed since the last export.  The docs reference the LastUpdatedAtSelector but the description says it will "Return all leads CREATED since the specified time".  For the most part I have seen the results being returned being created inside the LeadSelector window but I also see some that created before the window but updated inside it.  Does the API return things that are created OR updated in the given window, or just one or the other? 
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: How do I get both new AND updated leads from the API?

Update includes both created and updated, so the behavior you are seeing is correct.  If you want to isolate the list of leads that are created in a certain time window, try using getLeadChanges with an activityFilter for "NewLead"