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.

learn more… | top users | synonyms (1)

0
votes
1answer
2k views

REST to get list item by Id

I am always comfortable using JSOM, and I have used less of REST calls to access lists and its Items. But now I have a requirement to use only REST to get item by its ID. Is there any code snippet ...
0
votes
1answer
94 views

Sudden loss of access to `/_vti_bin/ListData.svc`

Between yesterday and today, all my requests to the "ListData.svc" API thingy have gone broken. Every request results as an Error 500, and asks me to check the server logs (to which I do not have ...
0
votes
2answers
25 views

Is it possible to host a PHP Web Application in SharePoint 2013

I have a PHP Web Application hosted in a site which consumes REST API. I would like to know whether it is possible to host that application in SharePoint? I know you could use Page Viewer Web Part. ...
0
votes
1answer
52 views

Getting no REST data in SharePoint in a html file

I am trying to get some data from a REST Service Url in a html file. This works fine when i am using the code direct in my browser. But when i embedded it into my SharePoint Site it wont work. On my ...
0
votes
0answers
27 views

Filtering a lookup field based on the value of a choice field in the child list - rest query?

This is for SharePoint Online. I've used some code available out there to create a cascade dropdown field (using a rest query and JSON) but that involves the child list having a lookup field to ...
0
votes
0answers
13 views

No “From Rest Service” Option in Infopath Designer 2013

I was looking to add a rest service call to my infopath 2010 form so I clicked on the "Add Web Service" dropdown. I only have the option for "From Soap Web Service". Am I missing an update or is ...
0
votes
1answer
37 views

REST API datetime range not working as expected

Background: In Sharepoint Online, I'm using the Sharepoint REST API for query a few records based on its creation date (column Created). I'm using the following variations of the REST query for get ...
0
votes
0answers
34 views

I am having trouble with URL's using REST API in sharepoint 2013, for some reason it adds site pages and removes Document Library name

I have recently came across a problem with my code for a Document Library filter using the REST functionality. My code (below) returns all documents and folders correctly but when I open the ...
1
vote
1answer
23 views

_vti_bin/listdata.svc/UserInformationList retreive null DateOfBirth in Sharepoint Online

Im getting the User Information list with this link: https://SiteURL/_vti_bin/listdata.svc/UserInformationList But the DateOfBirth return this <d:DateOfBirth m:type="Edm.DateTime" m:null="true"...
2
votes
1answer
678 views

REST update not working

I am having problems updating list items using REST calls within an angularjs SPA. I've tried HTTP and ajax methods but both do not work and give different errors. (I am only trying to update ...
0
votes
0answers
29 views

Papa Parse and SharePoint

So, I have applied Papa Parse to a page that has a view of the list I'm working with. I have successfully read a CSV and logged it to the console. My question is, how do I update all items in my list (...
0
votes
1answer
58 views

SharePoint online REST: Get users profile properties

I'm looking for some help with a REST call I'm attempting to make in SharePoint Online. I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles I tried ...
1
vote
2answers
7k views

Get list items created by logged in user with REST api

How can I get all list items created or changed by the currently logged in user with this function? What's the correct query? // Getting list items based on ODATA Query function getListItems(url, ...
1
vote
1answer
846 views

PublishingPageImage Field is missing when get data through Rest Api to Pages Lib 2013

I want to get PublishingPageImagefield value on REST API method on Pages library with below script. executor = new SP.RequestExecutor(appwebUrl); executor.executeAsync({ url: appwebUrl + "/_api/...
5
votes
2answers
3k views

Can I use $expand to get Managed Metadata column values?

I want to get a list, using REST, which include Managed Metadata columns. Currently I get a TermGuid for these columns, which I then have to do more work on to get their actual default values. Is ...
0
votes
1answer
36 views

REST copyTo Method in SharePoint Online

I'm trying to make a copy of a MS Word document and add it to a document library in SharePoint Online with the below code, which runs once without firing the success or fail message, and throws "SP....
1
vote
1answer
36 views

SharePoint 2010 - REST - retrieve group members

I am building a form using REST and am trying to create a drop down based on a person/group field. '..ListData.svc/listNameFieldName' does not seem to work for those field types and accessing '.....
0
votes
0answers
13 views

Find tags related to a document

I'm developing a Sharepoint-hosted App and I need to acquire the tags which a specific document is tagged with. How is this done? I'm currently trying to solve the problem using REST but I would ...
0
votes
1answer
563 views

Create an item with REST API from workflow - SharePoint 2013

The main idea of this is to create an item from workflow in another list which is located on different site collection. So I thought is it possible to create an item in list with REST API through the ...
5
votes
1answer
3k views

Copy List items using REST/JSON

I'm very new to REST and JSON, I want to copy list items from one list to another list in the same site on button click, both the lists are of same type but with different column names and they are '...
10
votes
6answers
21k views

REST with $filter for List Items in Sharepoint 2013

Sharepoint 2013, REST API, native C++ application: I want to get all Folder items from the list. Try /_api/Web/Lists(guid'GUID')/Items?$filter=FileSystemObjectType+eq+1 and get HTTP 400 Bed request....
2
votes
2answers
1k views

How do I get List Discussion hierarchy using Sharepoint online 2013 restful interface

I am trying to find the hierarchy of Discussions (Items) for displaying Subject: I have something to sell   Reply: I'll give you $5 for it   Reply: I'll give you $5.01 But I ...
0
votes
1answer
908 views

POST Request through WebProxy with JSON data

I want to make a POST request with JSON data to a REST API through the WebProxy. Therefor I make a request like: $.ajax({ url: "../_api/SP.WebProxy.invoke", type: "POST", data: JSON....
0
votes
0answers
116 views

Access Sharepoint 2013 List from outside SP

Good morning, I wanted to be able to access items in a Sharepoint List from a stand-alone web page hosted on a different server. I've read through references to the REST API and I can see that I can ...
2
votes
2answers
18 views

Filtering in rest doesn't work

I want to do a simple task, which is to get all the items where the title contains some value. I searched and found the I must use substringof('value',Columnname). But still my rest query is not ...
0
votes
2answers
45 views

SharePoint Site Collection Administrators : Jquery

I have a current logged in User Id and through JQuery I want to find that whether the User Id is in site collection admins or not. $().SPServices({ operation: "GetUserInfo", userLoginName: $()....
0
votes
0answers
13 views

Get child elements in output XML through list API in O365

I am using list api to query my list: https:///_api/web/lists/getbytitle('workflow%20tasks')/items?$select=WorkflowLink and getting result as : <d:WorkflowLink m:type="SP.FieldUrlValue">d:...
1
vote
1answer
46 views

Rest - Error raised on Count items with filters in large list

The solution proposed in the linked thread does not seem to work for me as you can see below.. I have a rather huge list (2500 items) on SharePoint 2013 and I would like to get an idea of how many ...
0
votes
0answers
19 views

Find documents by tags

I want to create an Add-In/App that displays documents that the user might find useful or interesting, this is also supposed to be done using tags. I think I know how to get the tags that the user are ...
0
votes
1answer
32 views

How to create multiple fields with their datatypes using REST API?

According to MSDN, we can create field like below.. $.ajax({ url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741') /fields", type: "POST", data: "{ '...
1
vote
3answers
13k views

How to get all items in a view using REST API

by using rest api I get items like this http://mydomain/_api/web/lists/GetByTitle('MyList')/Items I get the view like this and naturally in it I have the GUID http://mydomain/_api/web/lists/...
0
votes
0answers
17 views

SP2013: CAML query return result paged?

I have a list of 2500 items which I need to filter and then iterate through. Since the payload of returning (potentially) 2500 items is too big I need to break it down into small pieces. For this ...
2
votes
1answer
311 views

Copy file to another folder with REST API

I'm trying to copy a file located in user's personal folder (OneDrive Pro) using REST API. The resulting link seems to become too long and server returns 400 BadRequest: The length of the URL for ...
4
votes
0answers
61 views

Replacing SOD with fetch (handling JS library dependencies - *in the future*)

Anticipating a future, I am experimenting with User Custom Actions in the new Document Library View Microsoft has so kindly provided to the First Release Office365 tenants. Since there is almost ...
0
votes
0answers
31 views

Updating metadata when uploading file using REST API

Is there a need to update document's metadata every after uploading the file to SharePoint using Rest API?
0
votes
0answers
25 views

Content of Content Editor webpart received by REST call? Is that possible?

I may have various GUIDs and paths/files in hand, but still not able to find the inner content of webpart editor via REST call. I have 1) page name and path, where Content Editor webpart is placed 2) ...
8
votes
2answers
3k views

Retrieve site collection quota and used storage from REST or JSOM

Is there a way to retrieve the amount of storage used and the quota limit for the Site Collection using the JSOM client or the REST web services?
0
votes
1answer
37 views

Upload file to SharePoint Online from external application

is it possible or not Upload file to SharePoint Online from external application? I'm looking to use some JavaScript with Jquery or angular to upload files from a asp.net or from another online app ...
1
vote
2answers
46 views

GetByTitle('Pages')/items?$filter=Id eq xxx error

My service call has the following: GetByTitle('Pages')/items?$filter=Id eq 19 which with the correct encoding is: GetByTitle('Pages')/items?$filter=Id%20eq%2019 which returns me the following ...
0
votes
1answer
18 views

Pass data from external form to On Premise?

Are there options to pass data from an external form (ideally) to an On Premise SharePoint. I'm attempting to collect data from external users who won't be granted access to our SharePoint. I see ...
0
votes
2answers
30 views

REST API Get across web applications not working

I'm doing a very simple REST Get to a list of broadcast messages on the web application that serves as our "intranet portal" from the web application we use for team site collections. Both web ...
0
votes
2answers
440 views

Adding user to a SP group via REST api - some sites return 401 “Access Denied” but the code succeeds

I guess this is very specific so might be hard to find someone who has a clue - but it's worth trying. I have a simple console app in c# that adds AD groups to existing SP security groups using ...
0
votes
1answer
39 views

Getting this error: An entry without a type name was found, but no expected type was specified

I am new to sharepoint.I am getting below error on ajax call i dont know where it is occuring. "{\"error\":{\"code\":\"-1, Microsoft.SharePoint.Client.InvalidClientQueryException\",\"message\":{\"lang\...
0
votes
0answers
40 views

Can Excel Services be called in REST in INFOPATH on Sharepoint online?

A call such as this: https://SERVER.sharepoint.com/_vti_bin/ExcelREST.aspx/Forms/helpers/NetWorkDaysFunction.xlsx/model/Ranges('DateDiffCalculation!A3')?$format=atom Returns data in the browser, and ...
9
votes
3answers
2k views

How to avoid _metadata in a REST response (listData.svc)

I am pulling data from a SharePoint list with listData.svc, and _metadata represent more than half of the response content. Is there a way to return list fields only, without the metadata? Below an ...
6
votes
2answers
9k views

How to get lookup value only via REST (listdata.svc)

I am trying to retrieve a list of items including lookup fields via listdata.svc. My lookup points to a list of companies which has the following fields: Title, Address, Phone. By default, listdata ...
6
votes
3answers
4k views

Updating a Property w/ 2013 REST Api

I have a SharePoint Hosted App that is successfully able to add Read and Create files on the Host site (using the REST API and SP.RequestExecutor). Now I am trying to figure out how to update ...
14
votes
2answers
1k views

REST and CSOM much slower than List Web Service

lists.asmx = Web Service listdata.svc = REST API client.svc = CSOM Using JavaScript to query a list using the 3 available APIs, I'm finding lists.asmx responds much faster than listdata.svc or client....
8
votes
3answers
5k views

SharePoint 2013 Call the REST API from SharePoint hosted app

I've successfully deployed a SharePoint Hosted App to Office 365 and my local on premise installation. All the app aims to do is call the REST API for the user profile manager to get the profile ...
0
votes
1answer
47 views

Passing function argument in $.getScript() giving SP.RequestExecutor is not a constructor console error

Here is my code 'use strict'; var hostweburl; var appweburl; // Get the URLs for the app web the host web URL from the query string. $(document).ready(function () { //Get the URI decoded URLs....