I tried using the getLeadActivity in REST API, and it returns all the the leads with in the date range specified in the Paging Token.
Instead is there a possible way that i can get the Lead activities of a Specific lead, identified by its LeadID via API?
Thanks in advance.
There is this function in the SOAP API: getLeadActivity » Marketo Developers
I haven't found a corresponding function in the REST API, but there are some ways as you found, to return bulk activities...
hope it helps!
You are correct, it returns 100 leads per page. All you do is paginate through the results.
The documentation covers this when explaining 'Stream Position':
It sounds like Takehiro's solution will work for you, but you should probably still become acclimated with stream position if you are going to be working in the API often.
Hope it helps!
I had the same issue.
In REST API constraint, my best solution is below steps.
1. Create a temporally static list (Manually).
2. Add a specific lead via Add Leads To List » Marketo Developers
3. Call getLeadActivity with a parameter listId.
4. Remove a specific lead from a temporally static list via Remove Leads From List » Marketo Developers
But this steps has a few problem.