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
42 views

http:<server>/_api/web/webs 401 unauthorized

i'm using a jquery script embedded in a SharePoint page. i am able to load the results of a /_api/web/webs call to REST as myself (site collection admin). However, anyone that visits the page that is ...
1
vote
2answers
24 views

Querytext: blank value for a property

How could I specify in a Querytext that I want all the elements that doesn't have defined a value for a property? For example, let's say that I'm interested in the property CheckoutUserOWSUSER, how ...
3
votes
1answer
589 views

How to add items to a document library when uploading a file using Rest in SP 2013?

I am trying to add file to document library by using REST IN SP 2013 APP MODEL. This is my code I can upload file to document library but I can't add items value to that document library in fields ...
0
votes
0answers
22 views

Filter XML results from REST API call to SP list data

I was curious if it was possible to use VBA to send a query inside a REST API call to a sharepoint (SP) site in order to extract data from the SP list? I've looked around and I can't find an exact ...
0
votes
2answers
28 views

How to Refresh RequestDigest in SharePoint 2010 Angular SPA

I previously built an AngularJS application in SharePoint 2013 and that is great, now I am building a similar application in SharePoint 2010. I have two questions specific to SharePoint 2010: How do ...
2
votes
1answer
820 views

SharePoint Hosted App Cross Domain Calls to a REST API

I have a SharePoint hosted app and I want to use the JIRA REST API with it. Which means I want to make requests and work with the data from the responses. Because it's a SharePoint hosted app I can ...
0
votes
0answers
18 views

REST and Share price

I'm using 2010 and wanted to know if REST in 2010 behaves the same as 2013. Im looking for a get share prices and found a blog that explains how to use RESt but I cannot get it to work. Has anyone ...
0
votes
2answers
732 views

Upload attachment in a document library using c#

Our client is running CRM and SharePoint and they would like to upload attachments from CRM into SharePoint 2013 Online. I started searching the web for some help and I came to this Microsoft page. ...
0
votes
0answers
27 views

Bind REST result to DataTable/Gridview

Is there a way to bind Ajax/executor query result (JavaScript) from a SharePoint list to a datatable so that I can bind it into a gridview (aspx)? The examples I found so far are using ...
0
votes
2answers
1k views

How to get the ID of a list item with a given GUID in Sharepoint online with REST api?

I tried a request at a url of the following form .../_api/web/Lists/getByTitle('docLib')/items?$select=id,GUID&$top=1&$filter=GUID eq '2779cf8051-381f-4834-93dc-ece6345dde33' and i get ...
0
votes
0answers
32 views

How do I access the docs in a Sharepoint folder via REST API?

I am a total beginner with Sharepoint, actually I do not know much about the internal structures used by Sharepoint and what exactly can and can not be accessed via REST Apis Here is what I am trying ...
0
votes
1answer
663 views

SharePoint 2013 REST API: how to get or set document fields

I want to get and also set document properties defined in a content type via a Rest call in either and app or a workflow Activity. If you fire up Google Postman or Advanced REST Api client you can ...
0
votes
1answer
24 views

How to read Data from App web and write data to a host web by making REST calls

my Question :How to read/copy Data(images folder) from App web and write/Upload data to a host web (Picture Library) by making REST calls with the cross-domain library. i have Created SharePoint ...
1
vote
1answer
34 views

SharePoint-hosted App - Retrieving items in host web with REST from app web with enabled fine-grained permissions

I have a SharePoint-hosted app which is querying list in host web. This list has enabled fine-grained permissions (item level security) and I am site collection admin. When I try to query items (with ...
1
vote
2answers
145 views

REST endpoint working in SharePoint online and not in on premise

/_api/web/lists/getbytitle('List')/items?$select=Id,AttachmentFiles&$expand=AttachmentFiles The above REST endpoint works in SharePoint online and we are able to fetch attachments but the same ...
0
votes
0answers
10 views

When I upload a document to SharePoint it works but I still get an error

I am learning the different capabilities of REST in SharePoint and right now I am working on uploading documents with REST. I have a code that uploads the documents and they are readable and ...
1
vote
1answer
644 views

Clear all values in a multi-value lookup, via REST, SP 2010

Conditions: SP 2010, html/javascript, using REST to read/write to various lists. Im using a jquery multiselect plugin to set a multi-value lookup column. I need the selecting Groups of items, easy ...
3
votes
4answers
92 views

Testing REST API in SharePoint 2013

I'm new to SharePoint 2013 and I'm looking to use REST to do some api calls to my other web sites. I just want to see how to check and see the following items: If the REST service is enabled on the ...
4
votes
2answers
103 views

How to get all properties of all users in SharePoint 2013 Rest API?

I am using this code to get all properties for just myself (current user). But how can I change this so that I can get the same data but for all the users in SharePoint? var oldurl = ...
1
vote
1answer
67 views

Updating a list item from sharepoint online workflow using HttpSend

I'm trying to update a list item in the host web from a sharepoint app using workflow's HttpSend activity in visual studio. How should I set the RequestHeader and RequestContent values ?
0
votes
1answer
37 views

/_api/web/features

This applied to a site collection like https://tenant.sharepoint.com/sites/MySite/_api/web/features retrieves a list of features ACTIVATED at the current scope. Does that mean site collection ...
1
vote
1answer
25 views

Fetch 'DocIcon' in REST api call

I have to display other site collection list data in root site. I am using REST API call to do that. But I am stuck while fetching 'DocIcon'. Can anyone tell me how can I get it? Here is my code ...
0
votes
2answers
136 views

Postman Rest Call to _api/contextinfo failing

So I have been having this issue for awhile and im not sure what has changed. I used to be able to get the form digest value from hitting the /_api/contextinfo endpoint using a post call after ...
0
votes
0answers
21 views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
0
votes
3answers
38 views

Some fields Undefined when display results from REST query

I am learning to build custom SP solution with JS and HTML following the Apress book of same name. I use the following script (in Code Snippet of a SEWP): <script type="text/javascript"> ...
2
votes
3answers
150 views

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried "_api/SP.Utilities.Utility.SendEmail" and this is my code/ $.ajax({ contentType: 'application/json', ...
1
vote
2answers
195 views

The required version of WcfDataServices is missing

I try to add a list item via the SharePoint 2013 REST API (in Objective C) and keep getting the following error: { "error":{ "code":"-1, System.InvalidOperationException", "message":{ "lang":"en-US", ...
-1
votes
1answer
37 views

How to use SharePoint 2013 Rest api to get users by role

I am trying to use javascript to download all users of a particular role. I have this so far. It seems to get me all the users, but not all the properties of the users. I want everything such as ...
4
votes
2answers
802 views

SP 2013 REST API How to get Approval Status for Version History items

This is how SP presents Version History: I use this URL to get file history: ...
0
votes
0answers
20 views

SP.UI.ModalDialog.showModalDialog(options); refreshes browser and closes dialog

I have created a page which uses a REST call to get the DefaultNewFormUrl and then I am trying to pass this to the modaldialog but for some reason the modal fires, starts to load and then the entire ...
2
votes
2answers
1k views

SharePoint 2013 Http Web Service Action

I have created a basic SharePoint 2013 workflow with the intent to call the Rest API to retrieve the users from a SharePoint Group. To do this I am attempting to use the HTTP Web Service action ...
0
votes
0answers
23 views

Get current color palette for the site

I'm wondering if it's possible to find somewhere what .spcolor file is used for the site theme. As there is a method for applying theme to the site: ...
0
votes
1answer
25 views

Access Mobile Number from Active Directory in Office 365

Can I access mobile number from AD in an Office 365 project using rest api or server side code? Currently I am able to get information like emailand name from rest api but not mobile number or phone ...
1
vote
1answer
29 views

How to display the AssignedTo field from a REST query?

I am trying to display the Assigned To field in a table I am making with REST in SharePoint but all that is getting returned is [object Object]. When I type this url into my website I can see the ...
0
votes
1answer
29 views

REST Call to get DefaultNewFormUrl

I am trying to make a call to the REST service in Javascript to collect the 'DefaultNewFormUrl' for a specific list. The property is "not returned with the resource" so I need to make a separate call ...
4
votes
3answers
734 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
44 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. ...
1
vote
1answer
632 views

REST API In SharePoint 2013 Uploading and Setting a Property

I am currently in the process of trying to upload a file from using SharePoint 2013 Restful Service as well as setting the fields in the same document library at the same time. I have had success ...
0
votes
1answer
15 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
40 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
26 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
36 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
23 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
40 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
42 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
21 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
52 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
29 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. ...