SharePoint 2010 rest API获取超过1000个列表项. [英] SharePoint 2010 rest API get list items more than 1000.

查看:215
本文介绍了SharePoint 2010 rest API获取超过1000个列表项.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的

我们将SharePoint 2010和REST API一起用于获取列表项.

我们总是只能得到1000个项目.我们列表中的项超过2000.

因此它应该返回列表中的所有项目.

我们尝试了$ top = 4999,因此它也只返回1000个项目.

任何人都可以告诉我如何使用SharePoint 2010和REST API从列表中获取所有列表项.

谢谢

Harish Patil

解决方案

Harish,

您尝试过这种方法吗?

SPQuery.ListItemCollectionPosition属性

希望以上文章能帮助您克服数据查询的局限性.

另外,尝试将其添加到您的REST查询中: 解决方案

Hi Harish,

Did you try this:

https://social.msdn.microsoft.com/Forums/en-US/f1cf1f9f-99ca-4518-8c61-6b4630be9291/sharepoint-2010-using-rest-and-linq-does-not-return-more-than-1000-items-of-a-list?forum=sharepointdevelopmentprevious

SPQuery.ListItemCollectionPosition property

I hope the above articles helps you in overcoming the limitation in querying data.

Also, try adding this to your REST query: 


skiptoken=Paged=TRUE


这篇关于SharePoint 2010 rest API获取超过1000个列表项.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆