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)

3
votes
0answers
35 views

How to access a custom field of a list using REST

I'm trying to get information from a list in a custom SPField called "My Field" with the internal name "MyField" using this JavaScript code: $.ajax({ url: ...
0
votes
0answers
6 views

How do I set up SharePoint Designer so I can edit list item permissions using a workflow

I need to be able to change list item permissions within a workflow. I have Workflow platform 2010 but the Impersonation step is greyed out. I have Workflow platform 2013, but I dont know where or ...
0
votes
0answers
9 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
2answers
30 views

Problems while Accessing SharePoint List items in SharePoint 2013 using REST API in NAPA tool

I am trying to access the list item using an APP in my office 365 share point hosted trial environment.It seems like the call REST call is failing, the alert in error function is getting executed. ...
2
votes
2answers
769 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 ...
1
vote
1answer
26 views

Get the permission list for a group using jQuery AJAX requests REST API

How can i get the group permissions for a list using an AJAX request with the REST API? I could add or remove permissions for the group but i want to know the actual permissions of the group over the ...
0
votes
1answer
13 views

Get link to image from asset library

I try to access an asset library in a SharePoint-Hosted App via the REST API. The app is hosted in SharePoint Online. I get the properties of the images (e.g. the title etc). But I do not find a ...
3
votes
1answer
2k views

The field 'EventDate' of type 'DateTime' cannot be used in the query filter expression

I am trying to filter standard Calendar events via SharePoint web api and my query looks like this: /_api/web/lists/getbytitle('calendar')/items?$filter=( EventDate ge ...
3
votes
1answer
61 views

Using NOT on REST date query

I am able to filter for items created on a specific date with the following query (using today [03-06-2015] as an example): "$filter=Created ge datetime'2015-03-06T05:00:00.000Z' and Created lt ...
5
votes
2answers
143 views

Consume SharePoint online lists using REST API (in R)

I would like to be able to query lists that are on my sharepoint online site via R. I'm having difficulties ascertaining the right method for authenticating my requests. These requests would be ...
1
vote
2answers
179 views

How to add an AD group to a SP group using REST api?

I managed to write a code that adds a user to SP group using REST and it just posts this data: { '__metadata': { 'type': 'SP.User' }, 'LoginName':'i:0#.w|domain\\user' } to here: ...
2
votes
2answers
78 views

Add AD group to SharePoint Online using REST API

Is it possible to add an AD group into SharePoint. I've created a user group in the Office 365 portal, which appears to be stored in AD. Is there a way of searching for this AD group and adding it. ...
0
votes
3answers
37 views

Not able to access sharepoint list using rest api

This is my code function getListItem(url, listname, id, complete, failure) { // Getting our list items $.ajax({ url: url + "/_api/lists/getbytitle('"+ listname +"')/items", ...
1
vote
1answer
16 views

ItemAdded not firing with REST

I have an ItemAdded on a list which creates a Document Library for each item added, and updates some fields of the item. It fires perfectly when items are entered manually. It doesn't fire when ...
1
vote
2answers
548 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 ...
0
votes
1answer
11 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 though if its possible to create an item in list with REST API trough the ...
0
votes
1answer
16 views

Upload new image in asset library in SharePoint Online

I am developing a SharePoint Hosted app for SharePoint Online. Now I wondered if there is a way to upload a new image file to the central asset library. I found several code snippets for C#, but my ...
1
vote
2answers
52 views

Expand a multi value field in REST API

I have a Sharepoint list that has a multi value field which stores Person or Group. In the GET call to the Sharepoint list, I get the following response. Collaborators is the name of the field in ...
2
votes
2answers
18 views

Search REST API with the User Profile Service and Hyphenated Last Names

Using the Search REST API to get all users where their last name begins with a certain letter to make a custom user directory. For example, I hoped that the following would return all users that have ...
0
votes
0answers
15 views

Server error in Sharepoint newsfeed 2013 when uploading image

Whenever i upload any image in share point 2013 newsfeed , the rest api for getting newsfeed(http://siteurl/_api/social.feed/my/news), it returns me "Request Error". Can anyone help ?
1
vote
0answers
20 views

Download SharePoint folder using Python

I am using requests library in python to get pages from SharePoint 2010 and it's working fine, now I need to walk through a SharePoint directory and download all files from there to my local machine. ...
0
votes
2answers
42 views

Passing the Sharepoint Logged in user credentials to a REST API Call

I am having issues passing the current logged in user's credentials in to a REST API call. Here is the scenario: I have a SP 2010 hosted site that has a web part that makes a REST API call to ...
1
vote
1answer
1k views

Sharepoint 2013 REST API - Shared Documents / Author Info In one Call?

We are in the process of integrating from Sharepoint 2007 to Sharepoint 2013. We have a java based application using Sharepoint 2007 SOAP based webservices. In Sharepoint 2013 we are using the REST ...
0
votes
2answers
23 views

Path to User photo by ID (URL)

I'm consume data by REST: spApp.controller('blogCtrl', function ($scope, $http) {$http( { method: "GET", url: ...
2
votes
4answers
4k views

Create list item in sharepoint list using REST API using C#

I have a requirement to create list item in a sharepoint online list using the REST API and c#. How to achieve this. Most of the article show using REST API in jquery and Javascript but I have a ...
1
vote
1answer
15 views

Retrieve non-system folders from RestApi given the folder's relative path

'YouDomainServer'/_api/Web/GetFolderByServerRelativeUrl('relativepath')/Folders This call returns the system folders like 'Forms' which are not generally visible to the user. How to exclude the ...
3
votes
2answers
127 views

REST $filter when comparing 2 date columns causes error <nativehr>0x80070057</nativehr><nativestack></nativestack>

I'm using the on prem SharePoint 2013 REST API and I'm getting an error when I try to compare two date fields. $filter=ExpectedDelivery gt NeededBy The above query works perfectly using ...
1
vote
0answers
20 views

Trouble with curl and rest

I'm having a problem using curl to pull a specific task from sharepoint 2010 enterpise. We use a very complicated extendscript to process images into archive locations and create web images. We ...
1
vote
1answer
24 views

SharePoint site accessed via AAM url causes 401 Unauthorized error

I have a internet mapping for a SharePoint site that works fine. However, the same site's WCF REST service causes a '401 Unauthorized' error when accessed via a coded functionality. The same code ...
1
vote
2answers
51 views

Get all Files and Folders in one call

I want to get all the files and folders contained inside a SharePoint folder in one rest API call. We have the below API to get all the folders inside a folder ...
0
votes
1answer
49 views

GetFileByServerRelativeUrl returns corrupt document

I'm trying to read a SharePoint document using GetFileByServerRelativeUrl. The code seems to work (it throws no exceptions). It's returning a byte array that should represent a Word document. (It's ...
1
vote
0answers
30 views

Invalid Audience Id - Office 365

I am trying to connect with office 365 without going through Azure, so I was able to get the access token by calling the following URL ...
1
vote
2answers
37 views

Adding a folder to a list using the REST API

I have a GenericList that accepts folders as elements. I know how to create those folders in Sharepoint's interface. I'd like to be able to generate them with a script, using the REST API. I know ...
1
vote
1answer
64 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 ...
1
vote
1answer
22 views

Is it possible to exclude certain user views from ViewsLifeTime?

I'm getting the most popular pages in our site collection using the search REST API: _api/search/query?querytext='ContentTypeId:0x010100C568*'&sortlist='ViewsLifeTime:descending' The problem is ...
0
votes
1answer
39 views

I want to get list of all site collection available on SharePoint Server 2013 using CSOM or REST API but not server object model

I am working on client application for which I don't want to use Server Object Model of SharePoint 2013. I am ready to go for anything other that SOM. I want to get a complete list of site ...
0
votes
0answers
15 views

Can't send Email: Error 500 or 403 when trying to use SP.Utilities.Utility.SendEmail

I am getting a Internal Server 500 error when trying to send an email using the SP.Utilities.Utility.SendEmail in my SharePoint Online App. It is worth noting that I am working from a custom .aspx ...
1
vote
1answer
35 views

Is it possible to get the most popular pages using REST?

I want to show a list on our homepage of the most popular pages in our site collection. Is there a way of accessing this information using REST?
0
votes
1answer
26 views

REST API get by author differences by platform

I find that when I want to retrieve custom list items by author (in this case, by the current user) I need to use a different query whether using SP2013 on premise or O365. I tried creating the same ...
0
votes
2answers
57 views

Create a document-libary with SharePoint rest api

Is it possible to create a document-library via SharePoint Rest API?
0
votes
2answers
700 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
1answer
23 views

http post with body content in Java [duplicate]

i have trying to create a document libary by using SharePoint rest api but how do i add the body content with the post in Java? body: { '__metadata': { 'type': 'SP.List' }, 'AllowContentTypes': ...
0
votes
1answer
855 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
1answer
40 views

REST API Social News Feed with Images throwing 400 error

Reading the news feed with the REST API _api/social.feed/my/news gives me text, but if an Image post is added, without text, I get a 400 error. If I added text, I am shown the text and get no error. ...
0
votes
0answers
17 views

How to make REST requests from javascript

I have a web site and I want to get a document library from sharepoint. I want to do this in javascript only. Do I need to get OAuth Access token? Is it possible to establish tokens without backend ...
0
votes
3answers
79 views

Download file using REST

I want to download a file using REST API. I have a file in a document library /folder. I want download that file, but with a different name. Edit 1 : Below is my code. i am able to download file on ...
1
vote
2answers
56 views

Get the list of all users from Sharepoint Online

I'm using CSOM .NET library to access Sharepoint data via ClientContext. Is there a way to get the list of all users (including users who don't belong to any group) from Sharepoint? If not, is there a ...
0
votes
1answer
496 views

Creating a subsite using c# and the REST API

Im trying to create a site using the REST API from a console app. I keep getting: "Not well formed JSON Stream" I cant find much on calling the REST API from c# so have been piecing it ...
3
votes
2answers
109 views

Get the group of the current user using REST API

I'm trying to get the group of current user. By using this code: function checkGroup() { var group = ["D", "Sup", "A", "CP"]; for (var i = 0; i < group.length; i++) { if ...
3
votes
2answers
2k views

Access programmatically to SharePoint 2013 Online REST Web Services from Windows 8.1 Application

I have a problem in connecting to SharePoint online from the Windows 8.1 Application. My goal is quite simple: Connect to SharePoint Retrieve the List of Lists Get Items from a List I have tried ...