Folders Bulk API giving incomplete result | Community
Skip to main content
May 31, 2017 11:09 AM UTC
Solved

Folders Bulk API giving incomplete result

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.
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 1, 2017 5:44 AM UTC

You want maxReturn=200​.

6 replies

May 31, 2017 3:29 PM UTC

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.

Translate
Jun 1, 2017 5:29 AM UTC

Hi Luis,

I am not getting any nextPageToken value in the response.

Translate
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Jun 1, 2017 5:44 AM UTC

You want maxReturn=200​.

Translate