The OneDrive API supports pagination of results when using the /me/drive/sharedWithMe
endpoint. The API will return a maximum of 200 results per request, and will include an @odata.nextLink
property in the response if there are more results available. To retrieve the next page of results, make a new request to the URL provided in the @odata.nextLink
property. You can also use the $skip
and $top
OData query parameters to control the pagination of results. For more information, please refer to the OneDrive API documentation.
Graph endpoint /me/drive/sharedWithMe is not paginating
Hello Folks,
I just realize that the graph endpoint /me/drive/sharedWithMe is returning values only for the first 200 files sharedWithYou. As the documentation says it should return a property @odata.nextLink to request for the next list of files but it always returns null.
And I cannot use $skip, $top Odata parameters to handle the pagination by myself.
Microsoft Security | Microsoft Graph
2 answers
Sort by: Most helpful
-
Diya Ahuja 5 Reputation points
2023-06-30T18:10:15.2433333+00:00 -
Diya Ahuja 5 Reputation points
2023-06-30T18:12:07.77+00:00 The OneDrive API supports pagination of results when using the
/me/drive/sharedWithMe
endpoint. The API will return a maximum of 200 results per request, and will include an@odata.nextLink
property in the response if there are more results available. To retrieve the next page of results, make a new request to the URL provided in the@odata.nextLink
property. You can also use the$skip
and$top
OData query parameters to control the pagination of results. For more information, please refer to the OneDrive API documentation.