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 [rest]

The REST (Representational State Transfer) interface in provides access to lists and libraries as a relational data service. A core concept of any RESTful interface is the resource, and in SharePoint Foundation, lists and items are represented as HTTP resources that can be addressed by remote URLs.

1
vote
2answers
141 views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
0
votes
1answer
81 views

SharePoint Online - Get User Information & Location

I have built a powerapp form for requesting access to certain groups. This app is then submitted into the SharePoint list. In this list it stores the information based on the user who has created the ...
1
vote
0answers
83 views

Uploading a file using PUT to SharePoint, is there anyway to get the 'Id' in one call?

I'm uploading files to SharePoint (2010) Library using cURL using a command similar to this: curl --ntlm --user username:password -T C:\temp\1807500010.pdf http://website/1807500010.pdf -verbose ...
1
vote
1answer
450 views

How to get site ID without access to central admin or powershell

I was trying to follow this post for setting the owner of a SharePoint group using client side code. Evidently the REST /_api/web/sitegroups(id)/owners endpoint isn't functional. The XML formatting ...
0
votes
1answer
160 views

How to add a DataTable with Drop-down Select Menus

Can I add drop-down select menu to my data table plugins? When I filter Issue_x0020_Status as Active, Resolved and Closed it only shows what ever the user filter. This is my page And Similar to this ...
1
vote
1answer
146 views

CRUD with SharePoint Sub-Site Document Library

I am creating a python script that needs to create Folder Directories, and upload files into a SharePoint sub-site document library. I currently am using Sharepy for authentication, and the REST API ...
1
vote
1answer
78 views

How to obtain field description using REST?

My coworker is trying to get the text from the description for a single line of text field using REST. We have so far been unable to find any methods that allows us to access it. We know how to get ...
1
vote
1answer
186 views

SP Online REST API Durable Document Link

My google searches have all led to dead ends. Is there a way to retrieve the durable link code for a document using the REST API? When you copy a link in the GUI, it takes the form of:- https://...
1
vote
1answer
60 views

SharePoint 2013 Search API not returning png result

I am attempting to search a SharePoint instance using the search api. I have two files in a document library called AddDoc.docx and AddPic.png. However, when I search using Add* only AddDoc.docx is ...
1
vote
0answers
32 views

Sharepoint Online REST API - cannot get .aspx files

I'm using a Java app to get files from sharepoint online. I'm using the following REST API endpoint: apiUrl = BASE_API_URL + "/web/Lists/GetByTitle('" + sharepointList + "')/Items?$select=...
0
votes
0answers
22 views

Filter to query SP.UserProfiles.PeopleManager AJAX / REST

I'm trying to find the account name for a specific property in my organization that has been mapped to the userprofiles. It's not part of the siteusers profiles, but has been added to SP....
1
vote
1answer
392 views

SP Online REST API Change the Content Type of a Document Library Item

I would like to change the Content Type of items in a SharePoint On-Line Document Library, using VBA and the REST API. I would like to change existing Folders to a custom Content Type, derived from ...
0
votes
1answer
122 views

jQuery and REST API to list all subsites and users in those subsites with full control

I'm looking to display on a web part in SharePoint online a list of all sub-sites and all users with full control to that particular site i.e. Team Site Site Owners https://ab/...
0
votes
3answers
324 views

Rest Api Filter on Number Field Starts with

On SharePoint 2013 On Premise, I need rest api filter where I can search some numbers in list starts with. Since records are around 100,000 I can not display all. Hence need a kind of search function.
2
votes
1answer
94 views

orderby Created is not working in SharePoint rest api

I am trying to orderby Created date in SharePoint Rest api Below is the url that I use /_api/web/getfolderbyserverrelativeurl('style%20library/Gallery')/Files?$expand=ListItemAllFields&$orderby=...
0
votes
1answer
179 views

A value without a type name was found and no expected type is available

I want to update my fields: { "Activitiy": [ { "LookupId": 110, "LookupValue": "110" } ] } But I got an incorrect response. How to ...
0
votes
0answers
38 views

Show Lync info after dynamic userfield load via REST

I build a page in Sharepoint Online. By a button click it shows a user from a listitem and it renders it in html using REST API and JS: /_api/web/lists/getbytitle('thelist')/items(1)/...
0
votes
1answer
22 views

How to run function on every object REST call returns or active one?

Missing one important component here. I'm making a REST call with jQuery ajax, and would like to know how to run my if statement for all items or the current active item [this] instead of just the ...
0
votes
0answers
30 views

SharePoint Rest API - not able to get “Form Data” property of a list item

I am trying to get a field named "Form Data" using Rest API I tried the below url https://site.sharepoint.com/sitename/_api/web/Lists/GetByTitle('List Name')/Items(5581)?$select=FormData I got the ...
0
votes
2answers
440 views

SharePoint REST API - update metadata Document Library Item when value string includes apostrophe (single quote) character

I want to update a metadata column for an item (document set) in a SharePoint document library using REST API (via VBA). The below (vba) code extract/simplification works fine for simple cases, for ...
1
vote
0answers
20 views

How to Get User-Generated Columns from Ajax

Is it possible to determine which columns in a SP List or document library were custom generated by the user? I'm essentially trying to recreate SharePoint's front end in my app, and I want to add ...
3
votes
3answers
268 views

How to deal with special characters in rest parameter values

I am working on REST call. Everything works fine but my column contains special character & So rest call like below works: http://mydomain/_api/web/lists/GetByTitle('MyList')/Items?$filter=...
0
votes
1answer
39 views

When calling SharePoint REST OData api, what is the biggest value allowed by $top?

I am making calls to get all sub-sites of a site collection using: ${siteCollectionUrl}/_api/site/rootWeb/webinfos But there are 1000's of them. So I need to get them in pages using the $top and $...
1
vote
1answer
225 views

Datatable row color based on Rest API results

I have a Rest API call to pull data to create a Datatable. What I'm trying to figure out is how to dynamically color the rows based on information in one of the columns (example here is if the ...
0
votes
1answer
136 views

Azure AD App Only Token - The server was unable to process the request due to an internal error

I'm using adal-node to retrieve a Azure AD App-Only Token. This requires that I have a Azure AD Application, modified the manifest to include keyCredentials, generated on my computer with a ...
0
votes
1answer
549 views

How to get Person or Group user details from REST API query

I am having trouble trying to get the "Title" portion of a Person or Group field from SharePoint Designer 2013 workflow using a REST API query. I have my workflow built similar to the one in this ...
1
vote
0answers
133 views

Rest API not able to get items from list which has crossed the threshold

I am querying list using REST. API: siteURL = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('Test')/items?$top=5000&$filter=((BBEmail eq '"+_spPageContextInfo.userLoginName+"')...
0
votes
0answers
20 views

Send date of newest list entry via Webservice to other application

We are linking a SharePoint-List (SharePoint 2013) in another application (Polarion ALM) in the left-navigation bar. Now we would like to add a notification setting in this other application ...
0
votes
1answer
199 views

How can I use another user credentials in SharePoint Rest API call JavaScript?

var data = $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + "/_api/ProjectData/Resources", type: "GET", dataType: "json", headers: { Accept: "application/json;odata=...
3
votes
0answers
453 views

Using Rest API call to get list item in SharePoint 2010 workflow

I am trying to get list item using REST API syntax in SP Designer workflow. The url format is as follows: https://example.com/_api/web/lists/GetByTitle('List%20Name')/items(2952)?$select=...
3
votes
1answer
66 views

Use SPQuery or REST API to join two lists

I am using SP 2013 and trying to joint two lists which are linked through a lookup field in the second list. I have tried several things like XML and SpSiteDataQuery but I am not familiar with using C#...
0
votes
1answer
18 views

App API Access to Single Site Collection

Is it possible to setup Azure based App permissions to only a single Site Collection? We are putting together a small application which will scrape external documents from various sites and dump them ...
3
votes
2answers
407 views

How to get the File Type of a File

I'm trying to load in documents from the Documents library in SharePoint and I want to be able to filter them by file type (Word Doc, Excel Sheet, etc.) from my application. I've figured out how to ...
1
vote
0answers
34 views

Unable to share a SharePoint folder in a list with REST

I am trying to add a webpart that will be able to share several different types of items in SharePoint 2013 OnPremises. I am using the following code, which seems to work well with one exception. ...
2
votes
2answers
86 views

Add Sharepoint Add-in/App programatically with JS or differently

Is it possible to add an app programatically automatically when new site is created? For example calling endpoint, automating click etc. SideLoading is not allowed in production Edit: target ...
1
vote
1answer
64 views

how to filter - with rest Api by name column?

I have used this query: _spPageContextInfo.webAbsoluteUrl +"/_api/web/lists(guid'"+guidList+"/items?$select=ID,Title,carNumberIfActive,fullName/Id&$expand=fullName/Id?$filter=fullName/Id eq ‘name'...
1
vote
0answers
90 views

SharePoint API postman collections?

Whether you are using SharePoint on-prem or SharePoint online, there are many times when you want to do rest api calls to sharepoint to get certain tasks done. I use Postman to store common api calls....
0
votes
2answers
247 views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
0
votes
1answer
76 views

Sharepoint 2013 javascript Add value in calendar list current user

I have a ParticipantsPickerId (Attendees) field in my Calendar List in Sharepoint 2013. How add value current user in this field.
2
votes
2answers
1k views

SharePoint REST API Document Library - filter by folder name

I'm running a JavaScript script that updates permissions on folders in lists and document libraries. To do this I need to get the ID of the item I want to update. The folders all have unique names ...
1
vote
1answer
71 views

displaying ajax query results in usable format

I'm trying to run an Ajax fetch which is apparently successful. What I'm unable to figure out is how to pull the individual field data to separate and use. I can display it all with a data.d.results ...
1
vote
0answers
60 views

Update metadata of many items in library

I have the requirement, that the values for two of my site columns of all our document libraries depend on a value outside of SharePoint (its stored in a database). If the value in the database ...
3
votes
1answer
30 views

Strange behavior with REST API SharePoint 2013

We are currently working on a site that has a publicly available version already out on the internet, the client needed to move over to our in house hosting environment which is SharePoint 2013 ...
1
vote
0answers
172 views

Batch requests with the REST API: Is it synchronous or asynchronous?

Simple question: is the batch request in the SharePoint 2016 REST API asynchronous or synchronous (for clarification: the multiple requests inside one batch are handled one after one [synchronous] or ...
1
vote
0answers
53 views

'Access Denied' error when attempting to read binary contents of a file stored in an O365 group via REST

I'm trying to read the binary contents of a file in an O365 group and I can read the raw file in my web browser after authenticating with O365, but if I use the same URL in a REST GET request, I ...
0
votes
1answer
28 views

Sharepoint REST API search on multiple sites

Using the Sharepoint REST API with a query similar to https://{tentant}.sharepoint.com/_api/v2.0/sites/{site-id}/drives/root/search(q='{text}') I can only get results from a single site/drive at a ...
0
votes
0answers
64 views

Authentication via REST API

For a week now I have not been able to figure out how to grab a bearer access token through REST API calls. I found the following guide: http://www.vibhutisinha.com/2014/09/step-by-step-to-create-...
-1
votes
0answers
158 views

On-Premise REST API with External Script

I am new to the SharePoint REST API and could use some guidance. The setup is as follows: I am running an externally hosted Python script that needs to be able to grab files from an On-Premise ...
0
votes
1answer
23 views

After creating folder return data is empty

I using the code below, but and the script that creates the folder on my SP online server is working just fine, but the problem is that return data is undefined $.when(pCreate(path + "/" + name))....
0
votes
1answer
127 views

Count sub folders in given folder

So this is my query to count items in given folder: /_api/web/GetFolderByServerRelativeUrl('/Shared%20Documents/')/ItemCount And it gives me count of all elements but how I can count only folders ...