The REST (Representational State Transfer) interface in Microsoft SharePoint Foundation 2010 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 ...

learn more… | top users | synonyms

6
votes
3answers
3k views

Can't upload a non-text file to SharePoint App via REST API

I am using the following REST code to add a file as an attachment to a SharePoint 2013 list item. <asp:Content ContentPlaceHolderId="PlaceHolderMain" runat="server"> <SharePoint:ScriptLink ...
8
votes
3answers
662 views

How can I query for “AssignedTo = [ME]” using REST?

It is quite common to use "Assigned To = [Me]" in SharePoint views to list the tasks / items which are assigned to the current user. This of course includes both the items which are directly assigned ...
1
vote
2answers
640 views

Error while pdating Master Page through JavaScript Client Object Model using SP 2013 App

I have created a Site Collection in SharePoint 2013 online. In this site I am trying to update Master Page through JavaScript Client Object Model. My JQuery scripts are able to change the Site Master ...
5
votes
1answer
407 views

Workflow getting Access denied when calling the rest webservice from subsite

i have following problem. I am using SP 2013 Online and i am trying to access some informations from the sub site, like http://[SPOnlineUrl]/SubSite/_api/web/title. But i will always get the annoying ...
3
votes
1answer
3k views

SP2010 Javascript REST API: updating list item using MERGE and POST

I am trying to use REST API approach in javascript to update a sharepoint list item where I have an id. So I use GET and POST to create records, but per MSDN article it looks like the way to do this ...
3
votes
3answers
3k 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 ...
2
votes
1answer
478 views

Is it possible to make SharePoint lists accessible cross domain using REST API?

Is it possible to make SharePoint 2013 resources accessible via internet using REST API? Say I want to do CURD with a list from outside of SharePoint. How we can manage credentials for this situation? ...
1
vote
1answer
175 views

OData query in SPD workflow HTTP GET request

I'm building a 2013 workflow that uses an OData query in an HTTP GET request that is intended to return a list of items with titles that begin with a certain string (which has previously been recorded ...
1
vote
1answer
3k views

Properties when uploading Files using REST in SP 2013

After a lot of research I finally got uploads via REST working in SharePoint 2013. But I would like to provide additional properties to the Add Function like Title. This code works so far but the only ...
1
vote
1answer
2k views

ODataContentTypeException : Content Type 'application/json;odata=verbose'

I'm trying to create items in a SharePoint lists through the SharePoint REST API in Javascript (with an AJAX call using jQuery), all that in a SharePoint2013-hosted App. But I get this error when I ...
1
vote
2answers
2k views

Retrieving a lookup Value from a List using jquery and REST

I would like to get the lookup Value from a List item depending on it's Title. My List is set up similar to the following example: ColumnA : a | b | c lookupB : 1 | 1 | 2 The jquery: function ...
1
vote
1answer
3k views

Uploading files to Document Libraries using the REST API

I see that the OM API can do it, but is there any way to use the REST API to upload files (word docs and PDF's) to a document library, and update the data items as well. I want to use Java to do this, ...
5
votes
3answers
812 views

Updating Lookup Values with the REST API

Is it possible to update a List Item's Lookup Field Value via the Rest API? I can retrieve the field value if I use $select and $expand, but I can't find documentation anywhere that explains how to ...
3
votes
1answer
195 views

Using REST to approve a list item

I am hoping that someone else here has tried to do this successfully. I am trying to approve a list item via JavaScript using the REST interface. I know how to do it with CSOM, but in this scenario I ...
2
votes
2answers
110 views

Creating Folder using REST and JavaScript

I'm trying to create a Folder in a SharePoint Image library. I found an answer here but I can't seem to get it to work var web = 'my relative path to the current web'; var lib = 'name of the image ...
2
votes
2answers
121 views

Copying files AND folders via REST/Javascript

I'm trying to build a the following functionality into a library view: Each document has a checkbox beside it User checks off which documents/folders they want to copy User clicks a "Copy Files" ...
1
vote
2answers
66 views

SharePoint User Profile REST API unknown error

I activated user profiles (and managed metadata services), but when I call: http://<mysharepointsite>/_api/SP.UserProfiles.PeopleManager/GetMyProperties I get: <m:error ...
1
vote
2answers
1k views

Checked null with dateTime in REST API SharePoint

I want to get all article pages which Article Date is not null. so I have try to do by this way. var ArticlePageContentTypeID = ...
0
votes
1answer
211 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"> ...
0
votes
2answers
372 views

Filtering querystring results by date range

Simply, How do you filter results returned using querystring that fit within a given date range. For example I have a custom property RMExpiryDate and the value could be any date, lets say for ...
0
votes
3answers
268 views

Using REST call and Datatables plugin to retrieve SharePoint Date field

I'm having an issue with a REST call that's giving me some headaches. This is the code I'm using: function LoadAIP(state) { var call = $.ajax({ url: "https://xxxx/xxxx/_vti_bin/listdata.svc/AIPList? ...
0
votes
1answer
85 views

Add file to host web in SharePoint hosted app. Is it possible with Manage permissions?

I wonder is it possible to add a file from a SharePoint hosted App to host web without setting Full permission for the Web? function uploadFile(data) { var url = appUrl + ...
0
votes
2answers
864 views

REST insert new task item

I successfully inserting item in task list, but with only title, like this: string message = "'Title': 'NewTitle2 updated'" string json = "{ '__metadata': { 'type': 'SP.Data.MyTasksListItem' }," + ...
0
votes
1answer
659 views

Updating a multiselect field via REST API 2010

Can you update a mulivalue choice field via REST API in SharePoint 2010? If I perform a simple GET I receive: { "d": { "__metadata": { "uri": ...