0

I have a folder hierarchy in OneDrive containing around 1000 files spread out under those folders. All files are .mp4 files. When I do a search using the graph api and specify q='.mp4' it returns only 500 files (paged with 200 in each page). I have tried using $top=1000 but then I get one page only with 500 files.

Is there a limit of 500 for the search?

Dev
  • 2,428
  • 2
  • 14
  • 15
Thomas
  • 469
  • 6
  • 16

1 Answers1

0

I had the same issue during a customers project, where I requested the users group membership using Microsoft Graph.

For me, the solution was to use the $top parameter as you already mentioned.

GET https://graph.microsoft.com/v1.0/me/memberOf/?$top=999

I am not aware if there is any kind of limitation or difference as soon as you use the OneDrive Graph endpoint.

lrottach
  • 3
  • 2
  • I tried with 999 but still I get only 500. And no nextlink. – Thomas Nov 03 '20 at 14:34
  • If its the case, just make sure you have more than 500+ items so it can return. You can test the above using Microsoft Graph explorer as well. If you still face issue or no nextlink, consider filing a support ticket with Microsoft support for further help. – Dev Nov 24 '20 at 19:31