I might be using OpenFolderListing wrong, but every time I run the below code, I only end up with about 790 entries. There should be thousands.
var folderList = new List<int>(); var els = new EntryListingSettings(); using (var caseFolders = YearFolder.OpenFolderListing(els)) { foreach (var caseFolder in caseFolders) { var caseFolderId = (int)caseFolder[SystemColumn.Id]; folderList.Add(caseFolderId); } }
It's not obvious to me how to either get all of the entries, or page through them in a way that makes it happy.