How do I overcome the 5000 threshold Of SPO lists

Occasional Contributor

I have many libraries with way more than 5000 files. 

I am Building an SPFx web part and one of the action is to find documents in these libraries.

 

Using SP REST even when using top(10) I get the error:"The attempted operation is prohibited because it exceeds the list view threshold."

 

I tested the equivalent in Graph explorer but it returns:"The request is unprocessable because it uses too many resources"

 

So there is no way to programaticly find documents in libraries with over 5000 files?

Any one has a good advice. 

 

 

 

0 Replies