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 (1)

0
votes
1answer
12 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
448 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
9 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
15 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 = ...
4
votes
1answer
326 views

$inlinecount and $count missing in new OData API?

can anybody verify that in the new OData endpoint of SharePoint 2013 found at /_api/ does not implement the keywords $inlinecount and $count? ListData.svc has it implemented. Example: ...
3
votes
1answer
339 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
1answer
537 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"> ...
3
votes
1answer
55 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
2answers
308 views

SharePoint Online REST API Image upload AJAX

I'm trying to upload an image to SharePoint using native JavaScript/jQuery - NOT SP.RequestExecutor. I've cracked the authentication issue, nice and easy, so now it's just a case of working out how ...
3
votes
2answers
387 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
38 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: ...
2
votes
1answer
366 views

Getting List with REST Service to HTML page on different domain

I am trying to get data from SharePoint and display it in an HTML page on a separate domain using SharePoint 2013's API. The SP instance sits on-prem and the other domain is also within our firewall ...
1
vote
0answers
9 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 ...
2
votes
3answers
123 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: ...
1
vote
1answer
327 views

SharePoint Rest Api Filter not working and restrict to a site collection

The rest query is as follows, I want to get most viewed pages. I have used ViewsLifeTime property. This query returns some pages (unwanted) which their ViewsLifeTime is null. ...
0
votes
1answer
17 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 ...
0
votes
1answer
16 views

how to attach file to list sharepoint 2013 via REST API

I need to upload file as an attachement to list SharePoint using REST API. UPload the file to list and not to SharedDocuments. There is a COM code: ...
1
vote
0answers
14 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
38 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
1answer
335 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
29 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 ...
1
vote
0answers
20 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
12 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 ...
1
vote
1answer
460 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 ...
2
votes
1answer
47 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
7 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
27 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 ...
0
votes
0answers
25 views

How to get Sugested People, Documents and Sites to follow in Sharepoint online using REST

I know we can use http://<siteCollection>/<site>/_api/sp.userprofiles.peoplemanager/getmysuggestions API but I am unable to get the Data
0
votes
1answer
58 views

POST Request through WebProxy with JSON data

I want to make a POST request with JSON data to a REST API through the WebProxy. Therefor I make a request like: $.ajax({ url: "../_api/SP.WebProxy.invoke", type: "POST", data: ...
3
votes
2answers
58 views

How to get deferred object for sharepoint rest queries

I want to create one common jquery library to work with REST queries in sharepoint. I have two files. REST_Operations.js consumer.js In REST_Operations.js I am writing rest queries ...
2
votes
1answer
38 views

Help with REST $filter $select option

I have a REST call that I'm running to retrieve data on a list and filtering on a lookup field. This works fine and gives results as expected. ...
0
votes
2answers
40 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 ...
1
vote
0answers
29 views

Get ContentType by “internal name” through REST/JSOM

I understand content types has nothing equivalent to fields internal name, they only have Name, which is like a title. This can be changed, and alters between locales. My impression is that the safe ...
0
votes
2answers
47 views

SharePoint Hosted App: Using Cross Domain call to access list items on Host Web

I can use Chrome Advanced REST tools to test out a get list items request on the host web http://mydev/records/_api/Web/Lists/GetByTitle('Uber Documents')/Items?$select=Title Ok now I want to use a ...
5
votes
1answer
1k views

Using REST for a DVWP DataSource with Office365

I'm trying to use the REST services (ListData.svc) to retrieve items from a list in a very simple test with Office365. I can't seem to get the connection to work without adding my credentials to the ...
0
votes
1answer
18 views

Search API development with refiner language column

I'm currently working on a search driven App in SharePoint 2013 based on JavaScript and some forms. The mission is to get results from the search refinery in real-time for a specific search term. To ...
1
vote
1answer
139 views

Update folder name using REST API

I am using REST to update folder name via sharepoint apps. My code as follows: executor = new SP.RequestExecutor(appweburl); executor.executeAsync({ url: appweburl + ...
1
vote
1answer
57 views

Retrieving web part ID (GUID) with SharePoint REST API

I need to get the ID of a web part on a page before I have redirected the browser to the page. The reason for this is that I need to update a field value that contains web part settings, which are ...
1
vote
2answers
126 views

Dynamically get default display form url in sharepoint 2013 by REST or JSOM

How can I get default display form url of sharepoint list item via Rest or JSOM. I found the result by link: How to get the Display Form URL, using REST But the XML returns all of the display form ...
1
vote
3answers
89 views

Pulling user/group field data from SharePoint list using REST, jQuery, Knockout.js Sharepoint 2013

I'm trying to make an interactive task board based on the task list app in SharePoint 2013. The task lisk includes fields like "Title","Description","Status","% Complete","Due Date","Assigned To", ...
0
votes
0answers
20 views

Guest link via REST API

I would know if exist a way to generate a guest link for a file stored on sharepoint 2013 online via Rest api and access token. I tried this link passing the access token but doesn't work if you are ...
0
votes
2answers
51 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: ...
1
vote
3answers
89 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': { ...
4
votes
2answers
95 views

SharePoint 2013 REST how to add pagination?

I am using SharePoint 2013 REST to display my list data in a table My list is getting long and how can I have pagination links blow my table? my code: <script> var app = ...
0
votes
2answers
31 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
1answer
7 views

What are the list workflow approval field values in a REST call?

I looked at the REST call for a list and noticed that the value for approval was <d:approval m:type="Edm.Int32">16</d:approval> for 'Approved' and <d:approval ...
6
votes
1answer
2k views

Create multiple items via REST API

I'm looking to bulk create items to decrease the amount of calls being made in my application. In this instance, I'm working on a calendar control that has different needs than what SharePoint OOTB ...
3
votes
2answers
69 views

SharePoint 2013 REST display lookup fields?

I am using SharePoint 2013 REST to show data from my list, one of my field in announce list is AnnouncedBy which is a user packer field or is a lookup field how can I display it or get it using ...
2
votes
2answers
151 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 ...
2
votes
1answer
300 views

How can I check files In using OData for SharePoint 2010?

I am uploading files to SharePoint 2010 following the answer here: Uploading files to Document Libraries using the REST API The issue is that all of the files are set as checked out due to some ...