Folders Bulk API giving incomplete result | Community
Skip to main content
May 31, 2017
Solved

Folders Bulk API giving incomplete result

  • May 31, 2017
  • 1 reply
  • 3399 views

I am trying to retrieve the folders in bulk using the following API:

http://developers.marketo.com/rest-api/endpoint-reference/asset-endpoint-reference/#!/Folders/getFolderUsingGET

But no matter what I give the maxDepth (greater than 2), the maximum number of folders in the result never exceeds 20, i.e. does not return all the folders to the given depth.

Is this the limitation of API?

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

You want maxReturn=200​.

1 reply

May 31, 2017

Hello,

Read here: http://developers.marketo.com/rest-api/paging-tokens/   under Position-Based.

So, in your request are you getting a nextPageToken value? If you do, you have to create an additional request adding nextPageToken=valueReceived, so you will get the next 20 folders.

June 1, 2017

Hi Luis,

I am not getting any nextPageToken value in the response.

SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
June 1, 2017

You want maxReturn=200​.