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

How to get Principal Id of a User in Workflow

I am trying to set unique permissions on a list for specific users, and in order to do this I must be able to pull the principalId of the user from within a workflow to be used in a REST call in the ...
0
votes
1answer
24 views

REST API, Querying Lookup Additional column giving error

I have an additional lookup column RelatedLinks:Title. I am not able to query using rest api. Getting - The field or property RelatedLinks_x003a_Title does not exist. What is the proper way to select ...
-2
votes
1answer
50 views

REST results undefined

I am executing this code, but am getting the d.results = undefined: 'use strict'; $(function () { var call = $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + ...
2
votes
2answers
56 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. ...
3
votes
1answer
54 views

How to obtain Description & Url from Url Field via Rest Api

I have a problem with retrieving the Description from an Url Field via the Rest Api from SharePoint. If I make a call and select an Url Field with the normal $select ...
1
vote
1answer
23 views

How to make paging with using REST API in sharepoint 2013?

I have simple task. I must get siteowners information with restapi. I have to use paging. How to make paging with using rest api?
4
votes
1answer
155 views

Get last created item from SharePoint List using REST

I want to fetch ID and Title of last created item from SharePoint list using REST. I am using below url but it gives me wrong item, there are more than 10k items in the list. ...
1
vote
1answer
79 views

What is better way to enum directories and documents

I need to enum directories and documents in SP 2013. I need only those the user works with (no system or web files) To get initial lists omitting non-user ones I inquire ...
1
vote
0answers
45 views

Accessing Groups Created in Office 365 in SharePoint

I've created a Group in the Office 365 admin area and added a couple of users. However I can't seem to find it through the API. When you go to share a file and use the search function it appears in ...
1
vote
2answers
166 views

Creating folder in 2013 with REST API

Related to question Creating Folder using REST and JavaScript, I used 3 approaches to create folder with REST API (native C++ casablanca lib): request.set_method(methods::POST); ...
0
votes
3answers
1k views

get current user info using jquery ,REST and com

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
2answers
62 views

Sharing Files/Folders REST API

I'm currently using the REST API to upload files/folders and share the files with other users. Files/Folders are being uploaded to the following ...
1
vote
1answer
42 views

How to access sharepoint 2013 site owners with Rest API?

I have recently started sharepoint. I don't have more exprience. My question is simple. I would like to get information about site owners with rest api?
1
vote
2answers
263 views

SP 2010 REST $filter column

I'm trying to filter a list using the REST service. The column im trying to filter is the default column "Modified". My problem is: I can get all itens created today, but not only the items created ...
4
votes
2answers
728 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 ...
0
votes
0answers
29 views

How do I access a Custom List from a client web part via the REST API?

I am using the following code to try and access my newly created Custom List called Announcements: $.ajax({ url: appWebUrl + "/_api/web/lists/getbytitle('Announcements')/items", method: ...
4
votes
2answers
1k views

Create Page using REST API

I have spent two days trying to create a page with a specific Content Type in Pages list using REST API. It goes into error handler and returns ...
0
votes
0answers
18 views

Get specific user based on a custom user profile field - REST

I've got a custom user profile field ex: CompanyID If CompanyID=444 then return "microsoft" Something like this: ...
0
votes
2answers
501 views

Problem using JavaScript in SharePoint provider hosted app

I have created a provider hosted app for a SharePoint Online site and want to use JavaScript for most of the front end logic, rather than ASP.NET MVC I have run into Cross domain problems trying to ...
1
vote
1answer
54 views

How do I find all the PersonOrGroup fields I can request in my REST API call?

I have a list in SharePoint 2013 Online. This list has a column that is a PersonOrGroup type. I'm using REST APIs to retrieve the items of this list, and I want to retrieve all the data for the ...
0
votes
1answer
199 views

Is it not possible to add user to sharepoint group using REST for cross domain calls?

I am trying to add user to a sharepoint group in a "sharepoint hosted app". First I am checking whether the user exists in that particular group or not. If not, I am trying to add that user to a ...
1
vote
1answer
227 views

REST - get custom user profile property - on premise - Infopath

I want to retrieve a custom field from the user profile property with rest. The property is searchable in search. Name of the custom properties "CompanyNumber" But when I try to use ...
3
votes
1answer
262 views

Order field not available in a ListData.svc query

I want to query a links list using ListData.svc and have this ordered, using the query string $orderby, by Sharepoint's own internal order field. By internal order field I specifically mean the field ...
6
votes
2answers
280 views

Query ListData.svc to return document libraries only

I am working on a very simple app on iOS that should basically allow the user to login (got that part working), then list only document libraries and allow user to navigate these and download files. ...
0
votes
0answers
9 views

What can I do to get users that doesn't come in sharepoint rest api search to show up in result set list?

greetings! I am facing a trouble and it is driving me crazy. I created a webpart for searching people using sharepoint rest api and I had specified the rowlimit with 500 which is the max row numbers ...
3
votes
2answers
129 views

Client Side Rendering with Async dependencies

In my display template I want to render a field in different ways based on the user's group membership. The information about the group membership comes from an async ajax call (jsom or rest) What I ...
1
vote
1answer
23 views

Rest API filter quote

I am using the SharePoint rest API, I need to quote a string in the filter query. This is my query: ?$filter=MyField eq 'aaa'aaa' How can I search the string " aaa'aaa "? Thanks
2
votes
1answer
232 views

REST API and User Information List Permissions and Breeze.js

Users who are not site collection admins can read from the User Information List without and issues when using http://server.domain.com/_vti_bin_/ListData.svc/UserInformationList but these users get a ...
2
votes
3answers
216 views

400 Bad Request while trying to add a user to a group using ShP 2013 REST api

I am having such a bad time trying to figure this out. I'm trying to add a user to a group by posting to: _api/web/sitegroups(8)/users The posted data looks like this: { '__metadata': { ...
0
votes
1answer
147 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
4answers
4k views

REST service $filter Date column

Using the REST services, I'm trying to filter by the Created column, which is a Date data type. When trying to $filter on that column, I passed in the same date format that comes back in the JSON ...
1
vote
1answer
248 views

Copy value from one field to another in large list

I have a larger list (~6000 items) that I want to copy values from one field to another. Is there an easy way to do this? I'm guessing there is a REST or PowerShell way, but only have limited ...
0
votes
1answer
73 views

SharePoint 2010 RESTful API listdata.svc can't find list

I'm trying to use listdata.svc on a SP2010 list and I get "The website cannot display the page". It works on other lists in that same site and even on a duplicate of the list on another site, where I ...
0
votes
1answer
49 views

Remote authentication using REST

I am trying to access SharePoint online using REST API's remotely. Office 365 Smart links are enabled for the site. As per this blog I don't receive wsse\\:BinarySecurityToken in the response. My code ...
0
votes
1answer
42 views

How can I use CAML query with List WebService

var soapEnv = "<soapenv:Envelope xmlns:soapenv='http://schemas.xmlsoap.org/soap/envelope/'> \ <soapenv:Body> \ <GetListItems ...
0
votes
3answers
1k views

SharePoint2013 REST: Get user profile properties

I've been fighting to get user data using the REST API but I can't get it to work mainly because I am getting a server error 500 "Network Error: 500 Internet Server Error - ...
0
votes
1answer
49 views

Get checkbox values via REST API - SharePoint 2013

I have a status field choice with multiple values. How can i get /retrieve these values via rest api tried : for (var i = 0; i < data.d.results.length; i++) { alert(data.d.results[i].Status); } ...
0
votes
1answer
25 views

How to filll dropdown value using REST API

I have tried following code: $(document).ready(function(){ ExecuteOrDelayUntilScriptLoaded(GetEmpName, "sp.js"); }); function GetEmpName() { var strUser = "Developer"; var soapEnv = ...
3
votes
2answers
481 views

SharePoint REST POST to upload file produces corrupted or empty file

I've got this jquery/REST process that I thought was uploading a PDF file to SPO 2013 Document library, but it's only producing an empty or corrupt. Anybody know why? function ...
0
votes
1answer
159 views

Access Target Audience with REST API - The field or property 'Audience' does not exist

Resorting to asking a question on here as I cant seem to find anyone else who is trying to access the Target Audiences field with the REST API. If I try and pull out all the items in my list using: ...
1
vote
0answers
113 views

Authentication using Sharepoint Online REST API to create Task for Organizational Site

I have a Office 365 Organizational SharePoint Online Account. I want to Add Few Tasks in one of the list programmatically. I saw options of using JavaScript API or hitting the REST URL's ...
3
votes
3answers
192 views

How do I use getbytitle with special characters?

I have a list named "St. John's Calendar". How do I use it with SP.CamlQuery? I'm thinking I need to encode it in some way, but nothing so far has worked. Something like: ...
0
votes
1answer
49 views

Retrieving metadata around documents in a library

This may come across as a novice question, but I was hoping to gain some direction or advice in how to query SharePoint 2013 to retrieve the metadata (document properties, including the Document ID ...
1
vote
0answers
32 views

How to create multiple fields using REST query

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: "{ ...
0
votes
1answer
59 views

Creating folder is not possible in app web in sharepoint?

I am creating sharepoint hosted app. In that I created one list. Now I want to create folder in that list when I click on the button. Since it is in the same domain I am not using any cross domain ...
1
vote
0answers
53 views

How to get Title Resource from a View with JSOM or REST?

I am able to get title/name resource from lists, content types and fields. However, I'm not able to get title resource from views. I'm not sure how well documented this is, but this is how I get ...
0
votes
0answers
32 views

Sharepoint 2010 REST Api Copy Files

I want to create a program that takes all files from a specified list from my sharepoint 2010 and copies them to a local location on the server. In the REST-Api for the 2013 version there is a method ...
2
votes
1answer
119 views

Field value is null in SharePoint search REST API result

I have simple search REST GET query as below : https://<site url>/_api/search/query?querytext='research'&selectproperties='Title,Author,Created,ContentTypeId' The search result XML ...
0
votes
0answers
21 views

File Shared with

In OneDrive for Business you have the option to share a file. Can Edit/Can View I can find out who a file is shared with from SharedWithUsersId when using the below /_api/Web/Lists(guid'ID IN ...
0
votes
1answer
71 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 ...