I used SPServices to create and get a list of custom DocSets. There were some problems with that, so I wrote the code to create them with REST services. And that works properly.
I'm trying to rewrite the get a list part and running into troubles. I'm selecting the ID, Title and ItemChildCount like so...
url: webURL + "/_api/web/lists/getbytitle('" + listName + "')/items?$select=ID,Title,ItemChildCount&$filter=FSObjType eq 1"
But I get an error.
The field or property 'ItemChildCount' does not exist.
When I use SPServices I get the expected values for ItemChildCount. The same thing with ProgID -- works with SPServices, but not with REST.
I found this list which confirms the internal names.
And this one post about ItemChildCount not showing up.
I did create a new library, added some OOTB Document sets--not the custom one I'm using in my other library. I created them using the regular UI--not SPService nor REST. Added some children to them. And I get the same error.
So how would I go about getting ItemChildCount for a DocumentSet using REST services?