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)

4
votes
3answers
759 views

Sharepoint Online 2013 - Retrieving a task by its related list item?

For the ticketing system I've been working on, a task will be created via workflow whenever a new ticket (discussion) is created, which is assigned to the specific personnel assigned to that ...
1
vote
0answers
45 views

Filter by calculated column with rest api in Sharepoint 2013?

Apparently you can't filter by calculated column with Sharepoint 2013 rest api? The calculated column in question returns a string. ...
0
votes
1answer
16 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 ...
2
votes
2answers
43 views

How do I update a multi lookup field using the REST API?

As the Title say, all what I need is update a column with multiple lookup values. This is how I set the metadata var someNumbers = [4, 5]; var itemMetadata = { '__metadata': { 'type': ...
0
votes
1answer
32 views

SharePoint 2013 Search Rest POST error __metadata does not exist

I am attempting a post request, and I have the following body: { "request": { "__metadata": { "type": "Microsoft.Office.Server.Search.REST.SearchRequest" }, ...
0
votes
1answer
1k views

Office 365 SharePoint Online 2013 REST with SoapUI

Im trying to run Office 365 SharePoint Online REST API calls. I get an error message: <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> ...
1
vote
0answers
42 views

Sharepoint REST API filter eq with value containing % in Value

I am trying to fetch a record using the Sharepoint REST API, where the property Title contains a % in the actual value. And sharepoint REST API always returns empty value. Example : If my Title ...
0
votes
1answer
24 views

Unable to change a file's fields via REST

I've gone through quite a few blog posts, StackExhange/-Overflow questions, and also Microsoft's documentation, but I'm just unable to change the fields of a file via REST in Sharepoint running on ...
1
vote
1answer
43 views

SharePoint 2013 Online Permission to User Profiles REST API

I have a SharePoint application which I've built using javascript on a single page (not using an app). I have to make calls to the user profile service to retrieve properties like Manager and Business ...
0
votes
0answers
44 views

Get lists in Subsite/s through REST API

Is there a way to get all the lists in the subsites where the list is named 'Posts'? This gets the list if it is deployed on the subsite itself but not from the parent. The hostUrl looks like ...
0
votes
0answers
30 views

Refine Search Results for Search Query

I am using SharePoint rest search API. I am asking it to return me a specific set of results. It currently searches against a field called myfield. myfield is a multiple choice field. I am ...
0
votes
0answers
24 views

SharePoint 2013 REST API - Adding custom query-string variable and handling it at SharePoint

We have a requirement where we need to customize the SharePoint 2013 REST API endpoint to have custom query-string/post variable and we want to process the value passed in the variable at SharePoint ...
2
votes
2answers
57 views

Creating document set and setting values with REST/listdata.svc

I have a custom document set type and I want to create a custom button on a calendar that allows my user to click a day and create a new set for that day with the date already filled in. I've got the ...
0
votes
1answer
31 views

Sort DirectReports in rest api sharepoint 2013

Below is the query to fetch the Direct Reports for a particular user . How can is sort by display name in rest api? Can you please help me . I tried like this but it is not working. ...
0
votes
1answer
48 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 ...
1
vote
2answers
42 views

Can I get the Name of a list item as well as its Title using REST?

I am currently using the REST interface to retrieve information about Items in a SharePoint List: https://myserver/_api/Web/Lists(guid'<guid>')/Items(<id>) The data returned includes ...
0
votes
1answer
35 views

SP13 App CRUD Access to SP Task List

I am trying to build an app to access an existing task list to test out a UI but it is throwing an error within the Angular libraries. It can connect to lists within the app but not from the site. The ...
0
votes
1answer
223 views

Workflow Call HTTP Web Service returns xml instead of Json

I developed a Workflow that uses http call webservice in our devlopment site on O365. When I rebuilt the identical workflow in production, it fails with the error: ...
0
votes
0answers
54 views

Sharepoint 2013 REST API Authentication Problem

I have a Sharepoint 2013 Server and want to read lists in JavaScript using the REST API. I've got it to work in an Application Page just fine but I also want to use this outside of a Sharepoint Site. ...
1
vote
2answers
126 views

Returning custom columns when using search API sourceid

I am attempting to search a specific custom content type using SharePoint Online's REST Search API. Here is the URL Request. _api/search/query?sourceid='d0aa2c2e%2D7709%2D46f1%2D835a%2D244f483e4b0e' ...
0
votes
2answers
1k views

The field 'Author' of type 'User' cannot be used in the query filter expression

I was making a rest api call with Odata filter author/id. I want to get survey responses of a particular user. ...
1
vote
3answers
673 views

Get private folders of all users in OneDrive for Business REST API

I want to get all private folders(and files) for all users in one drive for business using REST API. I got access token for https://mydomain-my.sharepoint.com using administrator account. Now I am ...
1
vote
1answer
50 views

SharePoint 2013 Online adding a user to a group using a workflow

I am trying to add a user to a security group via a SharePoint 2013 workflow I am currently trying to do this using the Call HTTP web service action and I have 3 dictionary's built. All of this is ...
3
votes
2answers
701 views

Get users Manager using Client API

url: appweburl + "_api/SP.UserProfiles.PeopleManager/GetUserProfilePropertyFor(accountName=@v,propertyName='Manager')?@v='" + seluser + "'", For my SP 2013 app I need to get a users manager and I'm ...
2
votes
1answer
55 views

Update readonly field using REST API

I am trying to update a list item using Rest API. Following is my code. It works and it updates all fields except "RichMessage" which is a Note field with RichText="TRUE" and readonly. I have tested ...
1
vote
1answer
110 views

Get UserId with JavaScript in SharePoint2013 / SharePoint Online

I need to update a person field in a list using a result from a people search (sourceid=B09A7990-05EA-4AF9-81EF-EDFAB16C4E31). The search works great, but does not return the person's ID that I need ...
1
vote
0answers
87 views

Image file corrupted upon upload via REST

I have been attempting to use REST to upload image files to SharePoint but am running into the same issue again and again. The issue is that while the image file uploads to an image library, it shows ...
0
votes
1answer
21 views

Query the ContentTypeId field using SharePoint REST API

I would like to know if it is possible to query a SharePoint list using the ContentTypeId field using REST API. Can someone please help me on that? Thanks.
1
vote
1answer
63 views

How to find out the real path of an file in Sharepoint?

I am currently trying to write an application using C# that accesses a file stored on a SharePoint server programatically using the REST API. For that purpose, I want to check out a file. The file ...
0
votes
1answer
47 views

How do I use REST $filter with a “Hyperlink or Picture” type column?

The $filter method works perfectly on regular text columns, but I can't figure out how to use it with a "Hyperlink or Picture" type column. For example: ...
0
votes
0answers
30 views

Cannot get value for projected field

We are calling expand on a people picker column of a custom list but get the following error due to a particular SharePoint user having a null value for EMail. Cannot get value for projected field ...
0
votes
1answer
20 views

Updating List Item using REST API generates no error but nothing happend

Following is my code using Rest API to update a List Item. It generates no error, goes to success callback. However it does not update the List Item. var itemTitle = "Test item"; var userId = 22; ...
1
vote
4answers
1k views

What is the REST endpoint URL to get list of site collections?

If I go to SharePoint 2013 site, click on Admin -> SharePoint, you will see a list of site collections (the link is https://somename-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx) What ...
0
votes
2answers
40 views

Set Managed Metadata Values via REST

I am able to query and get an array of all my term names and guids within a Term Set, but now I want to be able to set these via REST. When I look at the structure in JSON the section with my Managed ...
2
votes
0answers
27 views

Is there a way in SharePoint online to programmatically find out how many users are assigned a SharePoint license in Office 365?

Basically we have a provider hosted app that needs to check the number of users in an Office 365 subscription that are assigned to a SharePoint license. Maybe some sort of Office 365 API?
0
votes
0answers
13 views

Adjust width of cells returned by Excel REST API

Scenario: I have a PivotChart in Excel that summarizes some data, but some additional info that doesn't fit the Pivot format needs to be shown too, so we have a text box in the chart that displays ...
0
votes
0answers
32 views

How to convert string to byte array and create document with that byte array using REST Queries

I am having with requirement to create a document with some specified string. I am trying to convert that string into byte array, array buffer. I am able to create a document. But unfortunately that ...
0
votes
1answer
17 views

Value of people field does not show up on result of rest api

I have two lists, Notification1 and Notification2, and they have the one people field named Owner. The first one is created via SOM, and the last one is created via SharePoint UI. The problem with the ...
0
votes
0answers
43 views

Discussion Board : An error occurred while processing this request REST Services

I have created a list using Discussion Board template in SharePoint Server 2010 site. I am accessing the list using REST services as below. http://[servername]/_vti_bin/listdata.svc/TeamDiscussion ...
4
votes
2answers
523 views

Audit log web service for Office 365

I am working on developing an application that will interact with the Office 365 services. I am currently able to get the files and folders of a singed-in user using the OAuth2 authentication. I am ...
2
votes
3answers
6k views

get current user info using jquery ,REST and csom

My goal is to get the login name and picture for the current user. I am using SharePoint 2013 Foundation. I tried three method and non of then worked correctly: This is with jQuery SPServices: ...
0
votes
0answers
17 views

Get lists from subsite with webervice

I'm using SharePoint 2007 and try to retrieve all list from a subsite. I added reference of my subsite in my solution: http://sptest/sites/root/subsite/_vti_bin/lists.asmx Here is my code Private ...
0
votes
1answer
60 views

Is it possible to write from Client App Part to a list in its Appweb?

Didn´t find any information at google or at stackexchange for this topic. I wrote a sharepoint hosted app, which has a list. In default.aspx I get data from that list via Rest and have form to create ...
0
votes
0answers
32 views

sharepoint rest query for multiple parameters

I am using REST query for getting values in search I am trying to use a filter that combines topic and field http://URL/_api/search/query?querytext='Path:http://URL/en/topic/article OR ...
1
vote
0answers
89 views

On Premise SharePoint 2013 host web Rest api cross domain access from MySite

We are using the OOTB REST api to access data from the Host Web App using JavaScript. The MySite has been set up under a separate Web App following the recommendations of Microsoft. This site needs ...
1
vote
0answers
163 views

How to dynamically set credentials when calling a REST web service with code in Infopath

Our SharePoint is configured to use Claims Based Authentication. We want authenticated users in SharePoint to fill a form and some fields will be automatically filled with their personal data. We ...
5
votes
4answers
6k views

Query SP2013 Managed metadata term store

I was wondering if it is possible to query the Term Store via the REST API or Javascript Client Object Model in SP2013. I can't quite seem to work out the naming scheme for the REST API to discover ...
1
vote
1answer
39 views

preflight returns 401 response even though headers correct

I am trying to access a sharepoint server REST api to upload some files. Access is via our tomcat application Although I believe I setup correctly the headers in IIS the request does not pass the ...
0
votes
0answers
21 views

Cannot delete the web site '<url of my app>' because it is an app web

I tried to delete an application (like Power BI or Access) of my Sharepoint online with the REST API but I got an error : HTTP/1.1 500 Internal Server Error Cache-Control: private, max-age=0 ...
0
votes
3answers
58 views

How to get ItemChildCount of DocumentSet (folder) using REST Api

I used SPServices to create and get a list of custom DocSets. There were some problems with that, so I wrote the code to create them with REST services. And that works properly. I'm trying to rewrite ...