Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 58747

Using the Representational State Transfer (REST) interface provided by SharePoint

0 votes

multiple parameter in filter in rest api

Try like this, var url = webUrl + "/_api/web/lists/getbytitle('" + listTitle1 + "')/Items? $filter=Project_x0020_code eq '"+ Project_code +"' and Application eq 'AAA' &$select=Application_x0 …
Vishnu S's user avatar
  • 874
2 votes

SharePoint REST API filter based on Today's date only and not time. (Similar to IncludeTimeV...

For filtering date values add datetime in filter var listName = "Carousel%20News"; var today = new Date(); var nextday = moment(today).add(1,'days'); today = moment(today).format("YYYY-MM-DD"); var …
Vishnu S's user avatar
  • 874
2 votes

CAML Query Condition use to REST API in SharePoint

Your rest API $filter must be changed to match the CAML query. http://...//_api/Web/Lists/GetByTitle('Library')/items?$select=TitleNew,Author/Id,Author/Title,MeetingDate,NgoName,Staff,MPicmailid,Mast …
Vishnu S's user avatar
  • 874
0 votes

rest api to call list item based on another column

Expecting that ListA 'PROJECTNUMBER' field is a lookup field in ListB. First get 'DOCCODE' & 'ID' fields of the each item from ListA. Then on binding Dropdown use 'ID' field as value attribute. It …
Vishnu S's user avatar
  • 874
0 votes

How to get listitem counts via rest api

Use REST API to get items you need, then get no.of items using data.d.results.length. function getItems(url) { return $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + url, ty …
Vishnu S's user avatar
  • 874
9 votes
3 answers
19k views

REST API call in SharePoint gets result, but when returns result becomes undefined

Getting data from a list using rest API. Here is my code , function getItems(url) { $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + url, type: "GET", headers: { …
Vishnu S's user avatar
  • 874
0 votes
3 answers
7k views

Item count with a filter condition using REST API gets result in web browser, error when coding

I need to get the no.of items in a SharePoint list which satisfying a condition. https://<SITEURL>/_vti_bin/listdata.svc/LISTNAME/$count?&$filter=FIELDNAME eq 'abc' using above url in browser give …
Vishnu S's user avatar
  • 874
0 votes
2 answers
5k views

How to search in a particular document library using rest API with postquery

I need to search inside a particular SharePoint (SharePoint 2016 on premise) document library using postquery with Rest API. For that using GET call, I found a way, http://{site_url}/_api/search/quer …
Vishnu S's user avatar
  • 874
0 votes
Accepted

How to search in a particular document library using rest API with postquery

Found problem in my code, I should have passed the Querytext attribute in this way, 'Querytext': $("#txtSearch").val() + "& path:{document_library_url}" instead of this, 'Querytext': $("#txtSearch …
Vishnu S's user avatar
  • 874
1 vote
Accepted

Sharepoint Rest Query to get files last modified between given timestamp

You can use multiple filter in the current api Url to achieve this. Try like this, _api/Web/GetFolderByServerRelativePath(decodedurl='myurl/myfolder')/Files?$filter=TimeLastModified gt datetime'2018- …
Vishnu S's user avatar
  • 874
4 votes
Accepted

SharePoint Online REST API delete multiple items in single request

REST API Note: Expecting that PARENTLIST 'ID' field is a lookup field in CHILDLIST with name 'PARENT' Call the DeleteChildItems function by passing the parentId function DeleteChildItems(parentId) …
Vishnu S's user avatar
  • 874
9 votes
1 answer
1k views

Retrive & Display a PDF document from SharePoint Document Library to a html canvas using Jav...

In SharePoint hosted App I need to get a specific PDF document from SharePoint Document Library & display its 1st page to a HTML canvas using JavaScript. For that, I tried to retrieve the PDF file us …
Vishnu S's user avatar
  • 874
0 votes

Loader Image on Synchronous call - Rest Api SharePoint

You can use ajax events to achieve your goal. Use beforeSend & complete event in Ajax. url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getByTitle('12kListItems')/items?$top=9999", }, …
Vishnu S's user avatar
  • 874
0 votes

SharePoint Online API for trending documents in mysite

We can get trending documents from a particular location(like shared documents). Please refer below code, var queryTrendingUrl = "/_api/search/query?querytext='path:http://siteurl/ShearedDocuments/'& …
Vishnu S's user avatar
  • 874