question

EdwardenisdelosSantos-2376 avatar image
0 Votes"
EdwardenisdelosSantos-2376 asked EdwardenisdelosSantos-2376 commented

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.
103892-image.png


microsoft-graph-files
image.png (47.5 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

From List items shared items docs, I do not see mention on the @odata.nextLink pagination property. Could you reference the documentation that you found this on?

That said, I can also see that this API supports $top but not $skip which most likely means it does not support pagination. Let me look into this further.



0 Votes 0 ·

Hello Danstan,

My bad, I thought that this property was global to all list endpoints in the graph API.
I resolve my issue by using $top=100000 but I think that was a dirty solution.

I think that all endpoints should be consistent and that the graph team should add pagination to this endpoint.

0 Votes 0 ·

0 Answers