I'm wondering if there is a way to retrieve the item children in batches, I saw this ability other REST APIs where we can set pagination parameters like startIndex and itemPerPage.
You can do this in the Item Web API.
Basically you have 2 parameters
- page: Specify the page number in the result set of pages that the service shows.
- pageSize: Specify the number of results the service returns in the HTTP response.
Which will control how many items you get, and which virtual "page" to start from.
If you want to do it in native c# code
There is no such option. Basically when you hit
GetChildren() or the
.Children property of an
item - all children will be resolved. This is also true for Item Web API querying, but you save a bit of bandwidth by only returning a subset.