Sharepoint 2013 REST API not returning all items for a list

后端 未结 4 1054
囚心锁ツ
囚心锁ツ 2021-02-13 19:38

The title states my problem quite exactly. If I try to gather all 400+ items from a list using sharepoint\'s REST API, I only get first 100.

I have read http://msdn.micro

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-13 20:11

    The limitation is due to server side paging.

    A workaround is to retrieve 100 items at a time, or override the limitation by entering a count of items:

    https://$DOMAIN/$SITE/_api/web/Lists/getByTitle('$LIST')/Items?$top=1000

    Note that there is also a threshold at 5000.

提交回复
热议问题