Missing Leads in New Leads Activity? | Community
Skip to main content
July 17, 2017
Question

Missing Leads in New Leads Activity?

  • July 17, 2017
  • 1 reply
  • 3176 views

Hi

We’re trying to understand an issue using the Marketo’s REST API. We are building a list of Leads based on the results we got from the New Leads activity endpoint. In other words, we make requests to get all the actitivies of type New Lead into a date range. Then we extract Lead IDs from those responses and we perform requests to the Leads endpoint looking for those collected IDs.

The issue is that New Leads activity endpoint is returning us just 12 leads, when we can see in the Marketo instance a bigger number of Leads. So the question is, Why New Leads Activity is returning us less Leads? Is there some configuration in Marketo or some condition for Leads entity that prevent the REST API to return the complete number of available Leads?

Another curious point is the distribution of items in the responses. /rest/v1/activities.json could return up to 300 results per response. In our case, each result represents a New Lead creation (Type 12). However, we got 4 results in the first response, and paginating from it, 2 more results in the next request and another 2 in the third request. Is that an expected behavior?

Thank you.

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

1 reply

SanfordWhiteman
Level 10
July 17, 2017

How far back did you start your Activity Log scan?

And yes, the short pages are expected behavior when filtering the log (the pages are based on all activities).

July 18, 2017

Thanks for your answer! I'm not clear about the relationship between API endpoints and the Activity Log scan, sorry. I was looking for information but even when I found several pages in the Marketo's documentation, none of them are exactly about this point. Could you please share a reference to read more about the Activity Log scan?

Should I understand that even if we are already creating New Leads, if we are not running an activity log scan, those Leads won't be available using the Rest API? Should I start that log scan now to see later all the new leads from the lasts months?

Thanks again