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)

1
vote
4answers
98 views

403 Error on REST/JSOM call within a form in SharePoint 2013

I try to update a ListItem in a (foreign) SiteCollection wihtin an edit form by CSOM. But I can't get it to work without getting a 403 error: cs.updateListItem = function(siteURL, listNameSTR, ...
1
vote
1answer
56 views

How to use array in rest API for getting items based on array values

I have array with id's of list items so I want those items from list using rest. I found this /_api/web/lists/getByTitle(listTitle)/items?$filter=(ID eq 1) or (ID eq 2) or (ID eq 3) So in this I ...
1
vote
1answer
79 views

How to get status of like in sharepoint rest api query

I have a photo list in sharepoint. When the individual items are viewed I make a rest api call and find the title and number of likes for that individual item. ...
0
votes
2answers
47 views

Adding items of one list to another using rest api

For selected items(Based on their ID's)from one list, I need to store those items to another list using rest API. How to append those ID's to rest API?
4
votes
3answers
218 views

Getting sub sites using rest

In alert I am getting [object object], I need to get names of all sub sites. <script> ExecuteOrDelayUntilScriptLoaded(RetriveSites,"sp.js"); function RetriveSites() { $.ajax({ url: ...
2
votes
0answers
20 views

Can I query ContentItems using tags in Sharepoint 2010 API?

I am experimenting with SharePoint 2010 REST Interface and SharePoint 2010 Web Services to retrieve content based on certain Tags. Is there a way to retrieve content based on social tags in ...
1
vote
1answer
72 views

Getting all sub-sites using rest

I have tried the below code for getting all sub-sites using rest... <script src="http://code.jquery.com/jquery-2.1.4.min.js"></script> <script> ...
2
votes
2answers
100 views

REST Equivalent of SPSiteDataQuery?

In SharePoint 2013's server object model there is a class called SPSiteDataQuery that allows you to query multiple lists across a number of sub-webs in the same site collection. Is there an ...
1
vote
1answer
102 views

SPUser field is returning only ID in REST

I have my multi-value SPUser field in my list. When accessing it via REST, I am only able to retrieve the ID of the SPUsers. In the result of the REST, the SPUser field was also appended by an Id in ...
1
vote
1answer
93 views

Using chunked upload/StartUpload with sharepoint REST api

I want to upload large files to SharePoint Online but I am unable to use chunked upload of sharepoint REST API. I would like to see a working example. The api is described in here using the methods ...
1
vote
1answer
60 views

Unable to retrieve RoleAssignments through Sharepoint Online REST API

I am having a problem with retrieving RoleAssignments (for any object, web, list, folder etc.) I have attempted to get it through: 1. https://[my_company].sharepoint.com/_api/Web/RoleAssignments 2. ...
1
vote
1answer
118 views

Workflow Instance ID with REST api

I have a Approve/Reject workflow attached to a library. Is there a way to get the Workflow Instance Id from the list item using REST API? I know it is possible with 'SPListItem.Workflows' in ...
0
votes
1answer
50 views

O365 Rest API Date/Time Fields Adding an Hour Since End of Daylight Savings Time

Here's what is happening in a nutshell. Date/time values for during DST (last week) are stored to reflect the actual local time. However, date/time values since DST ended (this week) are adding an ...
1
vote
1answer
79 views

PreSaveAction: how to return true/false on asynchronous checks?

With the PreSaveAction function we can perform our custom validations on the client side before committing data to the SharePoint. In this function we must return either true or false according ...
1
vote
0answers
45 views

how to add a link to a document using rest api

Please help me in adding a "Link to a document" using rest api to document library
0
votes
0answers
112 views

Get user properties by email from SharePoint 2013 User Profile

I'm getting the user email from an external HR system. I want to retrieve the user properties from SharePoint User Profile by email using the rest API (I'm using a SharePoint-hosted app) but it seems ...
0
votes
0answers
85 views

How to do security trimming in sharepoint 2013 rest api?

In my sp 2013, I am trying to do a rest api and get security trimmed results, when I try my url _spPageContextInfo.siteAbsoluteUrl + ...
3
votes
1answer
72 views

Unable to expand on 'yes/no' list field

I have 2 lists, List1 and List2. List1 is a list of items which has an ID lookup to items in List2 I have a query which queries an item in List1 and then returns expanded values from the associated ...
0
votes
1answer
84 views

Reading SharePoint list items using REST API and knockoutJS

I have used below code for getting list items from SharePoint list. Output is coming in alerts but it is not displayed in HTML controls. <html lang="en-US"> <head> <meta ...
2
votes
0answers
41 views

Sharepoint Authentication via REST API

I would like to connect to Sharepoint via REST API and Javascript. Based on readings I've done, first you need to have Security Token, then you use this Security Token to get FedAuth cookies, ...
0
votes
1answer
125 views

CAML query for 'FileRef' does not return relative path

I'm having trouble retrieving the relative path of a file using CAML: ...
0
votes
1answer
55 views

Using knockout in SharePoint for reading list items

I have used the below code for reading list items. But when I try to debug this code, the functions are not getting called.. 'use strict'; var hostweburl; var appweburl; function ...
0
votes
1answer
82 views

Create list item by restful

Code: function createListItem() { var item = { "__metadata": { "type": "SP.Data.listnameListItem" }, "Title": "testsetsetset", ...
0
votes
1answer
36 views

select pages with condition on page title using rest api

I am using rest api to filter pages and fetch their title and url //_api/search/query?querytext='Path:http:sharepointpath owstaxIdTaxKeyword:81394a-cedb-4c19 AND ...
0
votes
1answer
51 views

Getting sharepoint list items using knockout with rest api

I used the below code to get list items but it is going to error function and showing error in alert. <html lang="en-US"> <head> <meta charset="UTF-8"> </head> <script ...
0
votes
1answer
37 views

Sharepoint 2013 Query Filter Using POST

I'm trying to use SharePoint 2013 REST api to query using POST method. I have found few solutions to query SPListItems using CAML but i cannot find a solution to use Linq like queries. I'm trying in ...
2
votes
2answers
127 views

Retrieve list items dynamically

I have a list with one lookup field and a large amount of other custom columns. I need to retrieve all the fields but only my custom columns without to specifiy them becouse the solution needs to be ...
2
votes
1answer
82 views

list item navigation from js data table

I have created list search by using REST api + javascript. Actually i'm getting list items from list by REST query and displaying these items in data table. this is fine to get and display list items ...
1
vote
0answers
25 views

getting an access token to sharepoint add-in [closed]

I have a sharepoint site with list, and I want to get an access token for rest api calling, what url and maethods do I have to send in my post request?
1
vote
0answers
29 views

Is it possible to add existing site column to list using REST?

Is it possible to add an existing site column to a SharePoint list with REST? The MSDN documentation shows that a field can be added using /fields/addField but all the examples I have seen just create ...
0
votes
0answers
26 views

REST endpoint to get team members statusing in Project Online/Project Server

Is it possible, to have statusing information for a team member, via the rest interface in Project Online? The following endpoints are not available (no permissions), so no read/updates can be made ...
0
votes
0answers
36 views

Allow anonymous users to run a PURE Javascript that uses REST API 2010

I wanna run a query via REST Api 2010 on a Sharepoint 2013 Server, which returns the data in JSON format. The results should be displayed on a anonymous site after beeing processed via Javascript. I ...
0
votes
1answer
36 views

sharepoint user profile properties Client Web Part

im trying to get user profile picture in my Cilent Web Part but I get a error massage (_spPageContextInfo is undefined). I'm useing REST API jQuery(document).ready(function () { ...
2
votes
2answers
2k views

jQuery call all list items using REST

I'm trying to make a REST call to a SP list to retrieve all the list items, using jQuery from another website. Bit of background: The server is on prem, and the usage of this script will be on prem ...
0
votes
0answers
42 views

SP2013 REST API - 401 With Some Users

I've searched high and low, but there's something I'm missing (of course can't figure out what). We have SP2013 OnPremise and made a REST interface to access some resources. We are using this ...
0
votes
0answers
27 views

sharepoint user profie picture

I have created an app part that collects the current user profile picture function GetCurrentUser() { $.ajax({ url: _spPageContextInfo.siteAbsoluteUrl + ...
2
votes
1answer
94 views

JSon REST API. Retrieving items in lists. Workflows

Using this: http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=224 I was able to make a workflow that loops through lists. Now I understand adding ?$top=5000 at the end of my URL I can pull more ...
1
vote
0answers
41 views

webservice does not return data from sharepoint list

I have a WCF REST SOAP web service. whenever I try to call the service using console application. I get this error message: An unhandled exception of type ...
0
votes
1answer
219 views

Sharepoint Rest API, c#, update document metadata

I'm trying to update one metadata field - "myToAddress". There are others, but one is good for now. I keep getting "400 bad request". Quite certain the RequestDigest is ok, since I'm able to upload a ...
0
votes
1answer
90 views

Check if user has permission to access Sharepoint Site using REST API or CSOM(e.g. provider-hosted addin)

So I am trying to show a table that displays data from another server (via jQuery-Ajax for example). Now I have to secure the server that serves this data from unauthorized access. My idea would be ...
1
vote
1answer
70 views

How to update the “MajorVersionLimit” property using SOAP or REST API?

I'm working on a tool that will help my team in creating large numbers of libraries on a given site. Unfortunately, I can use only SOAP/REST interface to perform needed actions. I developed a simple ...
2
votes
2answers
148 views

Recent documents for currently logged in user (Client side)

I want to achieve something like shown in Image below. I want to display Recent Document visited by logged in user. I have tried it using Content Search Web-Part. I also tried to achieve it using ...
2
votes
0answers
22 views

Hybrid mobile SP2013 client

I already have a native iOS app that uses SP rest api without issues. My plan is to port this app into a hybrid one and make it cross platform using Cordova. Basically I want to mimic the native ...
0
votes
1answer
32 views

Recursively search for files based on metadata

I'm working on a SharePoint instance which consists of one site and 4 sub-sites. Each one of those sub-sites contains multiple files, separated into multiple folders. What I'm trying to do is write a ...
0
votes
0answers
52 views

SP 2013 - Updating a multi-value lookup field via the REST API - Bad request

I am trying to update a multi-value lookup field via the REST Api in a workflow. It works great in Fiddler. However, when I run the workflow I get a 400 bad request error. When I log everything in the ...
3
votes
2answers
161 views

Create/Update Task List item “ParentID” column via REST issue

I'm trying to create a list item in a default SharePoint Tasks list, with a specific parent id to create a hierarchy of tasks, e.g. Parent Task --> Child Task --> etc. The internal property ...
1
vote
2answers
337 views

Retrieve Images from Image Library in thumbnail format using Rest API

I am trying to retrieve Images from Image Library using Rest API from a mobile device (hence, no cross site calls).. I am using this approach ...
2
votes
1answer
63 views

Rest api - Query Multiple Sharepoint lists for a listitem with a given property value

I have 3 sharepoint lists with the same columns. I need to fetch the list items with a particular property value, eg. CustomName property with value 'Test' from all the 3 lists. Instead of looping ...
0
votes
2answers
82 views

Get Root Website URL in REST API

How to get SharePoint Root Website or parent web site URL in REST API?
0
votes
2answers
145 views

REST Api to filter items from sharepoint list

I need to filter data two times, once using current user and then by date. So I have used below rest API.. url: appweburl + ...