我正在尝试使用下面的 REST API 调用 REST API 来获取列表
https://myweb.sharepoint.com/teams/sites/subwebs/_api/web/lists/GetByTitle('MyList')/Items?
$top=1
&$orderby=ID
&$select=ID,FName,LName,Title
&$filter=Title eq 'Female'
Run Code Online (Sandbox Code Playgroud)
我需要 $filter 应该与限制为 $top 的记录数量一起工作。如果未应用 $filter,则 $top 起作用。
好吧,我的列表包含超过 5000 个项目。我在对上述 URL 发出 GET 请求时收到以下错误消息
{
"readyState": 4,
"responseText": "{\"odata.error\":{\"code\":\"-2147024860, Microsoft.SharePoint.SPQueryThrottledException\",\"message\":{\"lang\":\"en-US\",\"value\":\"The attempted operation is prohibited because it exceeds the list view threshold enforced by the administrator.\"}}}",
"responseJSON": {
"odata.error": {
"code": "-2147024860, Microsoft.SharePoint.SPQueryThrottledException",
"message": {
"lang": "en-US",
"value": "The attempted operation is prohibited because it exceeds the list view threshold enforced by the `enter code here`administrator." …Run Code Online (Sandbox Code Playgroud)