Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sharepoint-rest-api]

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

0
votes
0answers
17 views

How to use RowsPerPage in the REST API

Whenever I send a request with RowsPerPage set, either via GET or POST, more rows than the RowsPerPage value are returned. RowLimit works though. /_api/search/query?querytext='sharepoint'&...
0
votes
0answers
11 views

Change Value of Choice Column in Another List with Ajax

On one of my create forms I have a select-list that is populated with values from another list. Now, when the user selects an option from the select-list and saves.. My goal is to change the status ...
0
votes
2answers
39 views

Get folders from list using SharePoint Rest API

I allowed the creation of folders in the list, and the content type "DinamicoFolder" is of type folder. I have multiple folders inside the folder "Contas à Ordem" URL: https://test.sharepoint.com/...
0
votes
1answer
25 views

SPFx API calls, getting around threshold when getting data from two related lists

I'm currently trying to create a custom web part to display list items in an easy to read format. This web part essentially uses the REST API to grab the items and put them into a nicely formatted ...
1
vote
1answer
17 views

Get all fields of a site content type via REST?

Anybody know if there's a REST way to get all the field names for a site content type? I know I can do this: http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(...
0
votes
1answer
27 views

REST API append data to datatables

I have 2 lists, first list has the following columns: StaffName UnitName The second list has the following columns: UnitName Department Essentially, i want to pull all names from the first list ...
0
votes
1answer
71 views

REST API How to retrieve the ID of a newly created file

Using the Sharepoint Online REST API I have successfully created a new file using a POST request - https://company.sharepoint.com/_api/lists/getbytitle('MyTitle')/Files/add(name='test.jpg',overwrite=...
0
votes
1answer
13 views

Sort by RefinableInt using SharePoint Rest API

I've this code below: https://test.sharepoint.com/sites/test/Negocio/OfertaParticulares/_api/web/folders('Dinamico')/folders('55')/folders('Contas%20%C3%A0%20Ordem')/folders?$select=ID,Title,Created,...
0
votes
1answer
13 views

Rest API Documentation - getChanges query options

Where can I find all available query options for getChanges? /_api/site/getchanges(@qry)?@qry={} I know I can query using {"Add":true,"Web":true} but I'd like to know all properties I can specify.
0
votes
1answer
28 views

Accessing Terms in Folder using SharePoint Rest API

I created a content type of type folder and I added two taxonomy fields, as you can see. I'm trying to access the fields Tag and Grupo de produtos, I already tried this code below: https://test....
0
votes
1answer
34 views

Can i get distribution list of current user in SharePoint using JSOM or REST API

I have written a logic to check if the current user belongs in a Specific SharePoint Group e.g. "Visitors". However this user is present in the DL and the DL is added in the SP group, e.g. DL-Org. The ...
1
vote
1answer
68 views

Unable to Create folder in SharePoint from Rest API from Postman

I am trying to hit /_api/Web/folders API from Postman with body: {"__metadata":{"type":"SP.Folder"},"ServerRelativeUrl":"Test Document Library/Opportunity 5"} And getting response like: { "...
0
votes
1answer
20 views

Unable to update InformationRightsManagementSettings using REST

The following request returns Status 204, indicating it was a success but the informationrights settings hasn't become updated when I take a look the IRM-settings in the web gui for the list. The ...
1
vote
2answers
35 views

Issue while retrieving data in SPFX

I am trying to get data in SPFx using REST and also need to use CAML for making the query. CAML is required as I want to filter based on certain groups the user is present in, so giving that up is not ...
0
votes
2answers
43 views

Sharepoint Server 2013 REST API returns 401 by calling 'FieldValuesAsHtml' in anonymous access

I've followed the steps from the following answer: sharepoint 2013 anonymous 401 UNAUTHORIZED1 However, it works partially for me. The REST calls works when I try to access basic information from any ...
0
votes
2answers
36 views

SharePoint 2013 list item in drop-down

Created a page in which I have added a drop-down box . The drop-down box fetches all the ID's of a list . I am fetching the ID by using REST API . In the endpoint url I have added $top = 1000 to ...
1
vote
2answers
46 views

Authenticating to SharePoint from fiddler/postman fails with 401

I am trying to follow the guidance in many articles, one by Fabian williams, on how to make queries from Fiddler or Postman, but I keep getting 401 unauthorized. I have SharePoint on prem 2016, with ...
0
votes
1answer
29 views

SharePoint Online Search

How could I filter by range in a managed property of type number in a sharepoint search? I'm using pnp-js-core Thanks so much.
0
votes
0answers
20 views

Is it possible to access sharepoint without security_token?

I am trying to call sharepoint rest api something like /_api/search/query?querytext= but let's say if I dont have login information to send a post request to https://login.microsoftonline.com/extSTS....
0
votes
1answer
57 views

Fetch list of lists based on content type by REST Api

I need to display 2 dropdowns to user, first populated with all subsites in a site collection that have at least one discussion list; and second dropdown with all the discussion lists available in a ...
1
vote
1answer
37 views

Client to Server Authentication for SharePoint Online REST API

I am looking for answers if SharePoint online supports client-to-server authentication. My use case is to access Sharepoint REST API via pure JS with no server involved.
0
votes
2answers
117 views

How to get version history of item using REST

Very new to SharePoint so I am sure this is a newbie question... I did look at the forums. Here is the command I am using: https://Server/Site/_api/lists/getbytitle('Equipment%20and%20Inventory')/...
0
votes
1answer
32 views

REST API filter by a “BusinessData” field

I have a query that brings the contents of a list based on a query like this: https://myserver.com/LibraryABC/_api/lists/getbytitle('MyList')/items?$select=*,FileLeafRef&$filter=(MyField eq '...
0
votes
1answer
176 views

Add attachment to a list item using REST API

I have an infopath form that uses a custom (html) form submit button. The click event of the submit button adds the item to the list using REST API. The only issue is that when the user uploads an ...
0
votes
3answers
88 views

Get List Item ID for file in Document Library

I've got a document library which has folders in it. I can get a given folder and iterate through the documents in the folder via REST just fine. What I need to do is get some of the list item ...
0
votes
1answer
48 views

Rest API populating multiple people picker - populates my user AND “SPO Crawler”

Ok so this is a weird one. I'm trying to populate a multiple people field like this -> UsersToNotify = { "results": [10,50,563]}; Lets say 10 is my id. After i create the item through rest (create, ...
0
votes
1answer
38 views

Search/REST API only showing all results to Farm admin

I want to retrieve all the library items of a content type "Prod Request". I am using REST API. Here is my query: $.ajax({ url: https://mysite.domain.com/_api/search/query?...
0
votes
0answers
37 views

Anything wrong with this Search REST API Query?

Trying this: https://domain/_api/search/query/?querytext=%27TestSearchString%27&querytemplate=%27 {searchTerms}%20ListID:00000000-0000-0000-0000-000000000000%27& selectProperties=%...
0
votes
0answers
24 views

Get data from a different site collection using ajax - Sharepoint online

I am trying to get some data, into a webpart in SiteA, from a document library in SiteB using an ajax call. When I added my code to a content editor it worked properly. However when added it to the ...
0
votes
0answers
22 views

Getting the Item ID based on combination of two columns through Rest API

I have a small requirement where in I would like to get the item id based on combination of 2 columns. So I have two List which are List A List B Now I am getting two columns which are employee ...
0
votes
0answers
36 views

Starting SharePoint 2013 workflow using REST from another workflow fails the first time but works on retry

I have two SP 2013 workflows. One (WF1) does a number of things, but at the end of WF1, I'm calling another SP 2013 workflow (WF2) using REST. WF1 runs both on create and change and conditionally ...
0
votes
2answers
47 views

Rest Api Code not working

I have a very weird problem that i am facing. So currently i have written a rest api code in regard to my requirement. Basically, this is what i am doing in the code. Getting Employee Names from a ...
1
vote
2answers
54 views

Change Sharepoint group setting using JSOM or REST

I am looking for JSOM or REST option to update SharePoint user group settings who can edit the membership for the group.
0
votes
2answers
131 views

How to retrieve Multi Value Lookup List REST Api Sharepint 2013

have 2 lists, I tried to retrieve the values ​​of lookup field (one or more values ​​from the Finance list (Title, Country (lookup field to the list Country column "Title" $("#Finance").autocomplete({...
0
votes
1answer
35 views

Sharepoint REST API - How to Create InformationRightsManagementSettings

To create IRM settings using REST API, I am referring to document SP.InformationRightsManagementSettings object As per documentation, it suggest below REST endpoint to create new IRM POST http://<...
0
votes
1answer
27 views

Search SiteGroups API not working when case sensitive

I'm using the API to search for sitegroups as below: "/_api/web/SiteGroups?$orderby 'Title'&$select=Id,Title,LoginName" + skiptop + "&$filter=startswith(Title,'" + value + "')" However, I ...
0
votes
1answer
43 views

Add an item to a SP list with a managed metadata column in SPFx webpart

I've a list in SPFx with a column type of Managed metadata. Now I'll add an item in that list with a web part. But how can I do this? import { TaxonomyPicker, IPickerTerm } from "@pnp/spfx-controls-...
2
votes
1answer
39 views

What are the alternatives to authenticate in SharePoint beyond AD to use the Rest API?

I am trying to consume via Rest the Ms Project API from a Node client, I was searching and found that it's possible to get an access token from the ACS (Azure Access Control) and use this in the rest ...
0
votes
1answer
21 views

How do I use a specific view in Power Apps?

Arguably this is a PowerApps question as well, but I thought my SharePoint folks might have encountered this one. I am showing a SharePoint list in a PowerApp, let's call it 'Upcoming Events' and ...
1
vote
0answers
68 views

How to filter on a Edm.Double type using rest api?

I'm currently working on a small project where I need to query the Access Request list of a site, while this list is sort of hidden the REST api works perfectly (Mind you the title might be different ...
0
votes
0answers
14 views

REST Query discrete size error

I have had a rest query running on my site for some time now however this morning it has suddenly stopped working. The query uses the SharePoint search rest api with a number of parameters. https://&...
1
vote
0answers
20 views

How to Grant permissions to domain groups in SharePoint site using REST?

I need to grant permissions to Domain Group in SharePoint site collection using REST. Is it possible? If Yes, please suggest how to do it.
1
vote
0answers
18 views

Refinement filter to look at the Title and Path properties with REST Search API

I have a POST search using the following select properties: Path,Title,Size,Author,Description,FileExtension,Rank,DocId,WorkId,ParentLink,FileType,ServerRedirectedEmbedURL,ServerRedirectedPreviewURL,...
0
votes
0answers
30 views

List get does not return items

Beginner with sp js api here. $pnp.sp.crossDomainWeb(addinweb, hostweb).lists.getByTitle("Sites").items.get().then(function(result) { console.log(result); }); I can see it does ...
1
vote
1answer
66 views

.docx files uploaded to SharePoint through REST API being corrupted. Other file types okay

I have two ajax calls below. First to get the contents of a document on my server into an arraybuffer. Then a second call to a Flow to add the file contents into a new file on SharePoint. This works ...
1
vote
1answer
31 views

Sharepoint client.PostAsync(“Url”, null) Gets 401 unauthorized error REST API Xamarin.Forms

I am developing a cross mobile app using Xamarin and I am trying to post some items to a SharePoint List. I have created a windows form app just to test the SharePoint Rest API and it is working good,...
1
vote
1answer
42 views

How to fetch version history of list item and display in a list

I have requirement where I need to fetch the version history of each list item and display in a separate list where a specific column value has been changed. For Example: I have list named "Demo" and ...
1
vote
1answer
30 views

Filters result in “Expression not valid” - Sharepoint 2013 API

Here is the request: https://sub.domain.com/Stores/CrisisMgmt/_api/web/Lists/GetByTitle('StoreClosures')/Items$select=StoreRegion When I make a request without the filter, I get all this data just ...
1
vote
1answer
82 views

Using Sharepoint Search REST POST API: getting 403 error from HttpWebRequest

I am trying to use the SharePoint Search REST API to do a content search from my c# application. I have no problem using the GET method, but the POST method keeps returning a 403 forbidden error. ...
0
votes
1answer
26 views

Change approval status after insert item via Sharepoint REST API

I recently noticed that by modifying the column of an item in a list with active versioning, however much the item is approved, it changes the status to draft. When faced with this problem I decided ...