SharePoint Online: REST API for List, calling Filters and limit the return items

前端 未结 3 1246
野趣味
野趣味 2021-02-11 03:01

I am trying to call REST API for list using below REST API

https://myweb.sharepoint.com/teams/sites/subwebs/_api/web/lists/GetByTitle(\'MyList\')/Items?
$top=1
&         


        
3条回答
  •  栀梦
    栀梦 (楼主)
    2021-02-11 03:18

    I know this may sound very obvious, but the first filter must return 5,000 items or less. Then you can add other filters. You may not need the $top parameter in this case. For instance:

    https://site/_api/web/lists/GetByTitle('')/Items?$filter= eq '' and Title eq 'Female'
    

提交回复
热议问题