I am doing a very simple query to get all the items of specific PortalItemType (Feature Services) from a group
PortalQueryParameters groupParameters = PortalQueryParameters.CreateForItemsOfTypeInGroup(itemType, portalGroup.GroupId);
PortalQueryResultSet<PortalItem> queryResultSet = await portalGroup.Portal.FindItemsAsync(groupParameters);
The problem is it is only returning 10 items in the group when there are far more. I don't see anything in the documentation that would indicate a maximum number of returned items, and if there is how you get the next set. If I add a query string (in this case tag)
PortalQueryParameters groupParameters = PortalQueryParameters.CreateForItemsOfTypeInGroup(itemType, portalGroup.GroupId, "Download");
PortalQueryResultSet<PortalItem> queryResultSet = await portalGroup.Portal.FindItemsAsync(groupParameters);
Items that are not included in the first query are returned, so I know they are there in the group (well I can see them in Portal, so I know they are there).
What is going on? Obviously only returning a subset of the items in the group is not acceptable when I need to get them all.
Thanks,
-Joe
There is limit property on QueryParameters I did not notice.
PortalQueryParameters.Limit Property
Yup. The default is 10, and you can set it all the way up to 100