Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

REST API Get all documents Error Exceeds the list view threshold

$
0
0

Hi all,

I want to call one API to get all folder, and one API to get all documents.

- Get Folder

https://ebrevia.sharepoint.com/_api/web/lists(guid'6a73ca9d-b244-4022-bdd6-679d537d97a6')/items?$filter=ContentType eq 'Folder'&$top=100

- Get Documents

https://ebrevia.sharepoint.com/_api/web/lists(guid'6a73ca9d-b244-4022-bdd6-679d537d97a6')/items?$filter=ContentType eq 'Document'&$top=100

when I test on Postman.And it occur error 

The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator


I search google about this error, and recommend is manually add Column index ContentType

When I test again Postman, result is API Get Folder work work, but API get Documents still occur errorexceeds the list view threshold.

Have anyone met this error. Please give me a hand.

- Add Index ContentType

- Success with get all folder

- Error with get Documents

Thank a lot,

Danh




Viewing all articles
Browse latest Browse all 7589

Trending Articles