Third Light Developer Exchange

Code and templating community forum for developers and software integrators

You are not logged in.

Announcement

If you wish to join the Developer Exchange, please contact your account manager - this is to avoid unnecessary spam in the forums. Many thanks for your understanding.

#1 2017-06-16 14:46:14

ohilton
Member
Registered: 2013-10-04
Posts: 12

Folders_GetContainersForParent Pagination or limit change

It seems when running the Folders_GetContainersForParent for a container that has more than 300 sub-folders the API will only return those top 300 and then stop saying it can't handle any more results.  Is there any way to increase the limit or alternatively paginate the results?

Related but not in an obvious way, if i try to search for folders using the Folders_GetFoldersByProperty method and pass in a hash with just the 'name' key I always get a 'CONTAINER_TYPE_NOT_SPECIFIED' result, not sure what i might be missing there?

Cheers

Offline

#2 2017-06-19 11:52:40

ben
Third Light Staff
From: Third Light
Registered: 2013-06-06
Posts: 79

Re: Folders_GetContainersForParent Pagination or limit change

@ohilton

Hi, the 300 limit doesn't sound familiar to me. Please could you copy in the response you get from the server, obfuscating anything sensitive if need be?

For GetFoldersByProperty() you need to supply a "type" field in the "properties" hash. See excerpt from the docs below.

Best wishes, Ben

Folder Types

Folder types can be specified individually using the following (case insensitive) tags:

  • "FOLDER"

  • "COLLECTION"

  • "SMART_FOLDER"

  • "LIGHTBOX"

In addition (when appropriate), they can be specified as an array of these values, or the special type "ALL", which is treated as

["FOLDER","COLLECTION","SMART_FOLDER"].

For backwards-compatibility, "smartFolder" is also supported.
Numeric types are also supported, but it is discouraged to hard code these values.

Offline

Board footer