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

前端 未结 3 2047
孤城傲影
孤城傲影 2021-02-11 03:06

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:34

    Promise.all([
    rest call # 1 query : queryFilter:"ID lt '3000' and  Title eq '000672'"
    rest call # 2 query : queryFilter:"ID gt '2999' and  Title eq '000672'"
    
    
    .then( arr=> {
            let fullArr = [...a[0],...a[1]]
    

提交回复
热议问题