AnsweredAssumed Answered

FindItemsAsync seems to only return 10 items

Question asked by minerjoe on Aug 22, 2017
Latest reply on Aug 23, 2017 by mnielsen-esristaff

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

Outcomes