Lead Id based Lead Activity - API

Anonymous
Not applicable

Lead Id based Lead Activity - API

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

6 REPLIES 6
Anonymous
Not applicable

Re: Lead Id based Lead Activity - API

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!

Anonymous
Not applicable

Re: Lead Id based Lead Activity - API

Hi Mark,

getLeadActivity allows to retrieve just 100 leads!

Anonymous
Not applicable

Re: Lead Id based Lead Activity - API

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!

Anonymous
Not applicable

Re: Lead Id based Lead Activity - API

Hi  Mark,

Didn't know that we could paginate in marketo!

Thanks for the suggestion.

Cheers.

Anonymous
Not applicable

Re: Lead Id based Lead Activity - API

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

Anonymous
Not applicable

Re: Lead Id based Lead Activity - API

Hi Takehiro,

Your approach sounds helpful.

I'm going to try them.

Thanks for the suggestion.