Search Results
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 |
Using the Representational State Transfer (REST) interface provided by SharePoint
1
vote
404 error while calling two rest api services
In case you are using SharePoint online, the 2nd REST call would be like:
https://site-collection-url/_api/SP.UserProfiles.PeopleManager/GetPropertiesFor(accountName=@v)?@v='i:0%23.f|membership|gauta …
2
votes
multiple parameter in filter in rest api
Modify your endpoint as below (check for double/single quote ):
var url = webUrl + "/_api/web/lists/getbytitle('" + listTitle1 + "')/Items?
$filter=Project_x0020_code eq '"+ Project_code +"' and App …
4
votes
How to set and get people picker fields of a list using REST API?
To get people field try below code:
//Here users is a people of group field
var users = [];
$.ajax({
url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('employees')/items?$se …
0
votes
Search REST API for documents modified by logged in user
Instead of specifying the querytext, you can directly specify it in the query template itself
Try and modify the below endpoint:
var myurl = _spPageContextInfo.webAbsoluteUrl + '/_api/search/query?' …
1
vote
How can I get the full url link of of Pages library via rest api
Pages library is in a way a document library.
So, get full link of the page in the Pages library, you can use the EncodedAbsUrl property.
The REST API implementation for that would be as below:
htt …
2
votes
Accepted
REST filter today at midnight or ignore time portion
The correct date format to use in REST API filtering is YYYY-MM-DDT00:00:00.0000000Z.
var today = new Date();
today = moment(today).format("YYYY-MM-DD");
var currentDate = today + 'T00:00:00.0000000Z …
3
votes
Accepted
How to filter SharePoint search rest api results based on current logged in user
You need to use queryTemplate parameter instead of queryText.
Modify your endpoint somewhat as below :
var url = "http:../_api/search/query?queryTemplate='AnyText AND Author:{User}
AND ListId:a87b68 …
1
vote
Accepted
How to obtain field description using REST?
To get description of all fields, you need to use the below endpoint:
/_api/web/lists/getbytitle('<List-Name>')/fields?$select=Title,InternalName,Description
If however, you want to get the data fo …
3
votes
Accepted
Set URL or Title of document library with REST API
The approach you need to take for this problem to use the URL value that you want as Title and then change the Title value. So, at the time of creation of doc library, simply use URL value as title an …
3
votes
Accepted
REST api to change visibility of list?
Yes it is possible using REST API.
You can do that in the workflow by calling the REST API. I have done that using jQuery below which you can replicate in the workflow:
var itemPayload = {
…
1
vote
RestApi Query for sharepoint
You can use in conjunction with SharePoint Search REST API as below:
https://sitecollectionurl/_api/search/query?querytext='*'&sourceid='B09A7990-05EA-4AF9-81EF-EDFAB16C4E31'&rowlimit=5&selectpropert …
1
vote
Accepted
Create new list item with REST API and get item ID in function callback
You can use it something as below:
fetch(url, options)
.then((data) => {
if(data.ok){
data.json().then(value => {
const id = value.d.Id;
});
}
}) …
2
votes
Can't access SharePoint API from script but can from browser
You can also try it as below:
Add-Type -Path 'C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll'
Add-Type -Path 'C:\Program Files\Common Fil …
2
votes
Accepted
Sharepiont REST GetFolderByServerRelativeUrl get files from multiple folders
You can try the batch API as below:
SP.SOD.executeFunc("SP.RequestExecutor.js", "SP.RequestExecutor", function () {
// create a new executor for the current web
var executor = new SP.RequestE …
1
vote
Get URL/Description from Hyperlink field using REST API SharePoint
Unfortunately, this looks like a limitation of SharePoint REST API for hyperlink column. Couple of solutions are there which use CAML query which filter on the url value. So that is only possible on t …