Lead Id based Lead Activity - API | Community
Skip to main content
July 1, 2015
Question

Lead Id based Lead Activity - API

  • July 1, 2015
  • 2 replies
  • 1625 views

Hi,

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?

Any suggestions?

Thanks in advance.

Regards,

Bharani

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

2 replies

July 17, 2015

Hi Bharani,

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!

August 31, 2015

Hi Mark,

getLeadActivity allows to retrieve just 100 leads!

August 31, 2015

Hi Bharani,

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':

Stream Position » Marketo Developers

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!

July 18, 2015

Hi Bharani

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.

See also

August 31, 2015

Hi Takehiro,

Your approach sounds helpful.

I'm going to try them.

Thanks for the suggestion.