-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIstatus:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)Currently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work
Description
Category
- Question
- Typo
- Bug
- Additional article idea
Querying list items using a POST request to /_api/Web/Lists/getByTitle('MyList')/GetItems with POST data:
{
"query": {
"ViewXml": "<View><RowLimit Paged='TRUE'>1</RowLimit></View>"
}
}
gives the following response:
{
"odata.metadata": "https://savillsukdev.sharepoint.com/sites/cpa-ci/_api/$metadata#SP.ApiData.ListItems",
"value": [
{ ... }
]
}
Though the results appear to be paged (only one item returned), no paging information is included in the response object. I would expect to receive alongside the list items a ListItemCollectionPosition property that would include a PagingInfo string (as per the Client Object Model) which I can then use to retrieve the next batch (if any).
The data type returned by the query is SP.ApiData.ListItems which is not mentioned in the API Index and in fact should probably return a ListItemCollection which would include the paging information.
Please can you clarify?
DaleyKD and Aymkdn
Metadata
Metadata
Assignees
Labels
area:csom/rest/apiCategory: SharePoint Client Side Object Model SDK / REST APICategory: SharePoint Client Side Object Model SDK / REST APIstatus:trackedCurrently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)Currently tracked with Microsoft’s internal issue tracking system. DO NOT ADD/REMOVE (MSFT managed)type:archive-old-issueIssues which are closed as tool old for active workIssues which are closed as tool old for active work