get every Child from getNodeChildren()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-01-2018 09:28 AM
Hello guys,
if you call the function GetNodeChildren(idOfNode) the maxItems are 100 on default, but I want to get every child all at once.
Is there any possibility doing this?
Thanks in advance.
- Labels:
-
Alfresco Content Services
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-02-2018 09:51 AM
I assume you are using the Public v1 ReST API (potentially via the alfresco-js-api layer). The ReST API operation allows the client to specify the number of items to limit, so simply setting that to an absurdly high value (in Java one would use Integer.MAX_VALUE) should allow you to get all the children in one operation. The API you are using should expose that as a parameter, though I must admit I have not used the alfresco-js-api myself to know it for sure...
