Re: REST Get Lead Activities API returns wrong result

Anonymous
Not applicable

REST Get Lead Activities API returns wrong result

Hi all
My program uses REST Get Lead Activities from the list.
This list includes only one lead at same time but 3 leads activities are returned.
I think strange and try a few tests.
So when I change this list is empty, but api returns still same activities.
Why? Please give me an advice.

My Get Lead Activity Request
<REST API Endpoint URL>/rest/v1/activities.json?access_token=<Access Token>&activityTypeIds=1&activityTypeIds=2&activityTypeIds=3&activityTypeIds=6&activityTypeIds=13&batchSize=300&listid=<List ID>&nextPageToken=<Next Page Token>

Takehiro
Tags (1)
7 REPLIES 7
Anonymous
Not applicable

Re: REST Get Lead Activities API returns wrong result

Just to clarify, is the API returning lead activities for leads that are not part of the list you specify?
Anonymous
Not applicable

Re: REST Get Lead Activities API returns wrong result

Hi Murtza
YES!
I met this issue when  I was programing an APP beased on below REST strategy.
 

How can I get lead activities via REST as same as SOAP Get Lead Activities

https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PztNAAS

This list include only one person per time. And other user can not use this list.
Anonymous
Not applicable

Re: REST Get Lead Activities API returns wrong result

This could be a bug. 
Isaac_Lehr
Level 1

Re: REST Get Lead Activities API returns wrong result

Takehiro,

I am facing the same issue with the 'listId' parameter not functioning as expected. Did Marketo support provide feedback/direction or were you able to find a solution to the issue?

Thanks in advance!

Isaac

SanfordWhiteman
Level 10 - Community Moderator

Re: REST Get Lead Activities API returns wrong result

You should probably open a new thread.  Be very specific about the payload you're sending and what you're getting in the response.

Anonymous
Not applicable

Re: REST Get Lead Activities API returns wrong result

I am also having this issue...I found this article - it indicates that you need to use "assetIds" instead of "ListId"

Using API to get lead activities from specific asset

I sure wish Marketo API Doc  were kept up-to-date and had clear and working (tested ) examples.

SanfordWhiteman
Level 10 - Community Moderator

Re: REST Get Lead Activities API returns wrong result

It's 2 different concepts, though. One is to retrieve activities for leads that are members of a list at the time of an activity. The other is to retrieve activities whose primary relationship is to the list object.