Skip to main content
March 28, 2016
Question

Rest Get Call For Lead Activities

  • March 28, 2016
  • 1 reply
  • 2324 views

Hi,I tried making a Marketo call to get the lead activities for some particular ActivityIds .I used the following url-https://113-edc-810.mktorest.com/rest/v1/activities.json?activityTypeIds=100003%2c100005%2c100006%2c100007&nextPageToken…

with authorization - Bearer 2d7c1624-3006-40d0-bb27-358e43138c51:ab

I am getting the following result-

{

  "requestId": "249d#153be61a470",

  "success": true,

  "nextPageToken": "OOSKENADSXVMAAGXTEFWKVWNTITDRAI2GSUL3FHO3KFQALWMINKA====",

  "moreResult": true

}

The response has no results(no lead activities data) even through it is giving the next page token and more results to be true.

Any explanations or pointers?

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

1 reply

Justin_Cooperm2
Level 10
March 29, 2016

+ Derek Fung

SanfordWhiteman
Level 10
March 29, 2016

Isn't this documented as a possible condition?  (I've seen it too.)

In some cases, this API may respond with fewer than 300 activity items, but also have the moreResult attribute set to true.

Although it doesn't specifically say 0, but 0 < 300.

March 30, 2016

Can you help me understand what this condition implies? List down are my worries-

1-If there are no  result then the result property should be null but in the response i am receiving the property itself is missing.

2-If there are no results how can the more result flag be set to true?(Does it mean we can not rely on more result flag to know whether more results are there or not?)