Stack Exchange Network

Stack Exchange network consists of 174 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.

3
votes
0answers
381 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
55 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
17 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
271 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
29 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
60 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
43 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
86 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
156 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
65 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
701 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
59 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
50 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
28 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
154 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
46 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
21 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
57 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-...
0
votes
0answers
131 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
22 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
106 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 ...
0
votes
1answer
201 views

400 Errors moving files by REST API (Long URL)

In SharePoint Online, I'm trying to move files that are in a folder in a library to another folder in another library. I'm running a console app to do this so using the API. I'm mostly there but ...
0
votes
1answer
37 views

Unable to Execute REST API' StartWith for DateTime Column

I had written the below piece of REST API to filter the data for SharePoint DateTime Column , But I find no luck to execute Also, When I use startswith for SinglelieText column it's working fine. ...
0
votes
0answers
174 views

How to call REST api in provider hosted app

I want to call the Site Design apis in my provider hosted app to install site designs. Site design apis are REST apis. But when I trying to call it is always giving me the 403 forbidden error. I am ...
0
votes
0answers
13 views

Unable to get Calucaulated Field value from SharePoint Column

I am having SharePoint Calculated column where based on some condition's column is holding Names of Months's (Jan, Feb, March..) and it is SingleLineText Can any one please do help me how can I make ...
0
votes
2answers
27 views

How to run multiple REST's in a Function

I am trying to run multiple queries in REST. But only 1st query is getting executed. Can anyone let me why so. And how can I run multiple Rest's in single function? function Get_CountofCountries() { ...
0
votes
1answer
65 views

Trying to delete SharePoint folder using API

I'm following this https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest to try and delete a folder in a SharePoint library. I'm writing a c# console app ...
0
votes
1answer
568 views

How to get all the files from specific sharepoint folders and subfolders using CSOM

We have a site which has few document libraries and each library has n number or folders and sub folders. I want to get all the files only from the folders or sub folders which name is ABC and XYZ ...
0
votes
0answers
66 views

SharePoint/Project Server 2016 REST query

I am trying to be efficient in my _api/projectdata rest query and get specific results from timesheet actuals. However, in someones great wisdom they didn't provide something as simple as the ...
0
votes
0answers
17 views

Sharepoint 2013 Multilingual support with Anugular JS

I have a sharepoint list which has column for English and Arabic, Now I need to show the values in webpart by using angular js. how to handle dynamic column in angular js. For e.g <div ng-repeat="...
0
votes
2answers
612 views

Filter null value for SharePoint column using REST

I am trying to fetch the data based on my "EmpData" list. I am able to get the exact rows for the below Rest API query till I don't include "Null" filtration in my below rest var oDataUrl = siteUrl + ...
0
votes
1answer
341 views

How to create a subsite with site template with REST api?

I am having a site with some lists and libraries. I have saved this site a site template. Now I want to create a new sub site with programming. I know we can create from the user interface, but I want ...
1
vote
0answers
35 views

sharepoint next url give repeat data again

I am using sharepoint REST api. i have query like below: https://<SITEURL>/_api/lists/getbytitle('listname')/items?$select=ID,StartDate,Modified,DueDate,Body,Status,Assigned/ID,Assigned/Title&...
0
votes
1answer
36 views

how to add group into people or group column using jsom/rest

I want to insert group into list column .how to add share point group into people or group list column using JavaScript or Rest API .
1
vote
0answers
108 views

REST API call Orderby - JSON changes my order!

So the below function, gets data from a list in a certain order - by SortOrder column. If i go to the url in my browser and run it the order is as expected, however the output (JSON) seems to then ...
2
votes
1answer
302 views

Document Thumbnail via rest api (sharepoint framework)

I am using rest api to get the items from a document library: /_api/web/lists/GetByTitle('${listName}')/items?${queryString} However none of the returning properties is a thumbnail image of the ...
0
votes
3answers
1k views

Sp List item versions using REST

Is it possible to retrieve all versions of list items using REST? or at-least any other way of achieving it using javascript/jquery? I have followed https://stackoverflow.com/questions/24423657/...
0
votes
0answers
24 views

Workflow returns completed function but it never actually runs the workflow

I'm using the scripts below to run a work on a specific sharepoint site. Everything seems to work at it should since completefunc is being triggered. But if I look at the items worksflows then the ...
0
votes
1answer
28 views

Discover Project's Associated Folder with REST

I'm using Sharepoint 2013 along with Project Server. When we create a project via SP, it creates a Project and a Folder for documents of that project. The thing is, if the name of the project is ...
0
votes
0answers
58 views

2013 - Retrieve all V3Comments via REST API

I'm using SharePoint Foundation 2013. I've created a page with a CEWP. This CEWP shows an item from a Task List, where is possible to add comments to an item. I've noticed that comments are stored ...
0
votes
0answers
24 views

Can't access Form via OData after creating list using InfoPath

I created a SharePoint list using InfoPath to improve the Interface. Previously I used OData to capture the columns using Tableau. However, ever since I used InfoPath I am not able to get the List ...
0
votes
1answer
353 views

SharePoint API getfilebyserverrelativeurl saying doesn't exist

I have a sharepoint site, let's say http://sharepoint.company.com I'm trying to pull data from sharepoint.company.com/sites/one/sales/retail_locations.aspx when I perform a get request on http://...
0
votes
3answers
134 views

Not able to get ID of user using their user name - error in _api/web/siteusers

I am trying to find the ID of the user using _api/web/siteusers in Office 365 I get the below error User cannot be found But, when I add user to some people picker field in list item, it starts ...
1
vote
0answers
46 views

REST API - Filter Available Fields Choice Results?

We have a very large choice (nearly 20,000 options!!!) field that we want to be able to retrieve the choices, and preferably filter them on the server side. This is the call to get the options _api/...
0
votes
0answers
114 views

Can anyone confirm that SP.MoveCopyUtil.MoveFolder does not allow movement between libraries even in the same site

I've been struggling to move a folder (actually a document set) between libraries using the SP.MoveCopyUtil.MoveFolder method through REST. SP.MoveCopyUtil.CopyFolder works but .MoveFolder gives "...
1
vote
2answers
375 views

Filtering Calendar Items Using REST API

I'am trying to get calendar items and filtering by EventDate and EndDate fields using rest api. DateTime field filtering works fine on other lists but I can not filter calendar items by EventDate and ...
0
votes
1answer
52 views

Rest api return elements outside the filter

I'm having some problems with my filter / rest call. I'm trying to get the items that match some criteria in a list but it returns way to much. ?$select=Employee_x0020_No_&$filter((...
0
votes
0answers
191 views

Sharepoint 2013 REST API slow

I have a sharepoint List which contains 20000+ records, I am using REST API to retrieve items based on some filter its working fine, but it take nearly 10 secs for retrieve just 600+ records, I don't ...
0
votes
1answer
178 views

Need help with url and rollup image fields in sitepages using SPFX with REST

I'm new to SPFX and still trying to find my way around. At the moment I'm struggling to access particular fields from site pages using REST. I realize this is a n00b request, but any help would be ...
0
votes
0answers
18 views

SPscripts dao additem with lookup value

I'm using this code to add an item to a list with dao var siteUrl = _spPageContextInfo.webAbsoluteUrl; var dao = new SPScript.RestDao(siteUrl); var ReadMe_Document = dao.lists("ReadMe_Document"); ...