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

Which ajax code runs first

I have two ajax call in my jquery code, I would need one value from the first one to be used in second ajax call. But I observed that the second ajax code is running first. $.ajax({ url: ...
0
votes
1answer
23 views

Executing multiple REST queries without error

I've pulled the following example of a REST Query from the SharePoint 2010 Documentation. It's working well except when I try to run multiple queries at once by renaming the functions: ...
0
votes
1answer
24 views

Retrieving Groups for current user always returns zero results

I'm using the new REST api in 2013 to retrieve information about the current user. My issue is that I always get zero results for the Groups element. This is what I'm using: ...
1
vote
0answers
23 views

REST API SharePoint 2013 Document Upload

I'm working an on prem SharePoint site which I want to upload a document to it from a website. I can open up the IP from the site to allow for traffic. The site is built in PHP so I would like to use ...
3
votes
2answers
57 views

How to consume SP REST using only JavaScript\CSS\HTML5 (from CRM, outside Sharepoint, same AD)

How do I do to consume a REST DataSet using only something like JQuery? For example, if I have the items in a list\library and retrieve them as follows: ...
0
votes
1answer
1k 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
0answers
26 views

Can't expand ListItemAllFields on root of site

I want to be able to retrieve a list of folders on a site that contain user files (as opposed to the system files, .aspx files) I am trying to use the recommendation from Vadim Gremyachev in answer ...
1
vote
3answers
107 views

Rendering Choice, Date and User values in Sharepoint 2013 REST API (without knockout)

I have researched this topic, but I can't find a solution for multiple list items needing $expand:. The script is below, with the following fields: Title: text/Name of the Company CompanyStatus: ...
0
votes
1answer
33 views

REST: Can not see items in a list

So I tried to the get the contents of a list using REST https://xxxxxx.sharepoint.com/tsm/_api/web/lists/GetByTitle(‘OnSite Visits') but I get the following error: Not sure what is wrong?
3
votes
1answer
43 views

Using REST to retrieve lists

I have entered the following into Firefox to retrieve my lists and I get this back I was expecting xml, what am I doing wrong?
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 ...
6
votes
3answers
153 views

Creating Lookup column using rest which can take multiple values

To create a lookup column.. $.ajax({ url: "https://test/_api/Lists/getbytitle('abc')/fields/addfield", type: "POST", data: "{ 'parameters': { '__metadata': { 'type': ...
4
votes
2answers
869 views

How do I get list items' attached files with CAML via REST API?

I'm retrieving items from a list. The list contains entries which have attachments. Can I modify my query to include the attachment URLs? What's the most efficient way of doing this? <View> ...
2
votes
1answer
45 views

SP2013 use Rest with CAML query and expand lookup column

I'm trying to query a sharepoint list that contains lookup columns and taxonomyfields. When I use the $expand option I can't expand taxonomyfields, but when I use a camlquery i can't expand lookup ...
0
votes
0answers
32 views

Access Sharepoint 2013 List from outside SP

Good morning, I wanted to be able to access items in a Sharepoint List from a stand-alone web page hosted on a different server. I've read through references to the REST API and I can see that I can ...
2
votes
0answers
49 views

Is it possible to create a site in a different Farm via SharePoint Designer Workflow

UPDATE: It looks a little bit like a cross domain limitation. I was able to successfully complete a site creation within farm the WF is executed on via REST, but as soon as I attempt to hit another ...
4
votes
1answer
71 views

Search by content type using Search API in REST

I have two content types, softs ct and softs ct page having parent content types item and page . I managed to display results from custom list which is having softs ct but it doesn't display results ...
5
votes
3answers
2k views

Send E-mail from javascript using REST API

I want to send email using Javascript/jQuery using REST API in SharePoint. I have tried _api/SP.Utilities.Utility.SendEmail and this is my code: Code $.ajax({ contentType: ...
0
votes
0answers
40 views

Improving performance of a OData REST API call on a large document library

I have a requirement that requires that we use a built URL leveraging the REST API for our SharePoint 2013 site on a document library with many (about 800,000) documents. The format of the URL is ...
2
votes
0answers
21 views

How to include managed properties in SharePoint 2013 REST api?

I want to include managed properties in the REST api call in SP 2013, but when I try, it doesn't include them. For example ...
2
votes
1answer
2k 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 ...
7
votes
1answer
117 views

SharePoint JavaScript REST Api, how is the access token passed

I have the following code in my SharePoint add-in (SharePoint Online). Simple code just to load the list items, the code works fine $.ajax({ url: appweburl + ...
1
vote
1answer
64 views

Sharepoint Online: Retrieving PersonalURL for a user through the REST API?

I am looking for a way to the retrieve the following information for a user https://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.client.userprofiles.personproperties.aspx Especially ...
0
votes
1answer
30 views

Get users filtering Sharepoint search API refinementfilter by month

I need to get all users by refining hire date managed property in this week using SharePoint search APi. I'm tried lots of ways but not succeeded. Please help me on this. What will come in ...
1
vote
5answers
2k views

Get all users filtering by custom property using sharepoint search api

I need get all users with a custom property using sharepoint search api, this custom property already mapped in sharepoint. I'm using this url, and this retrieves all users ...
3
votes
1answer
801 views

Downloading and saving sharepoint 2013 file into browser client

I'm trying to get and save files from SharePoint app using REST, the files are located inside the host SP. Once got the file, I'm saving/downloading it into the browser with a save function. When I ...
7
votes
2answers
84 views

Basic batched get requests using REST API

I'm hunting around on the web right now for some basic (preferably working) examples of making a batch of get requests using the new $batch endpoint in O365 with the REST API. I've located some good ...
1
vote
2answers
64 views

get the attachement files from REST API when using select(I need other fields not just attachments)

I'm trying to get attachment plus other fields like title, created etc. When I use the below code var url = ...
3
votes
2answers
62 views

Error when updating a document properties using REST API

I need to update the version number of a document in a document library in SharePoint Online. I used postman to test this. Here is the POST Request I used. ...
0
votes
0answers
19 views

How to get data from level 2 lookup lists by REST API

I want to get Users (UserLookup) where SbuId equal something and RoleLookupId equal something Below is code is to select those fields without $filter, the code ...
1
vote
1answer
21 views

How can I run SPService or RestService with contribute access?

Is there a way to run REST service or SPService in JQuery with Admin. privilege same like RunWithElevatedPrivilege. In DispForm.aspx there is a button. I want to add logged user who has read access ...
6
votes
3answers
84 views

Get minor version of a document using REST API

I have a requirement to get all minor versions of documents in document libraries and list items in lists within a specific SharePoint site(SPWeb). To simplyfy the solution, first I obtained all the ...
3
votes
1answer
85 views

REST call to get list not working

I would like to make a function to pass a list name, if it exists, then append random number to its name and create a new one, if there's no list with the passed list name, then create it. So I am ...
0
votes
1answer
11k views

Get number of new emails from Microsoft Exchange server in SharePoint

We need to create widget that displays number of new/unread emails of current logged SharePoint user. Preferably using JSOM/Rest API for Javascript We've done the following: Link SharePoint to ...
1
vote
1answer
79 views

Get all items within a site collection using SharePoint Search REST API

How can I get all the items of lists and document libraries within a specific SharePoint site collection using SharePoint Search REST API?
0
votes
2answers
265 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: ...
2
votes
1answer
96 views

The field or property does not exist in REST

I am trying to query a list with lookup column to another list, basically I have sub announcements, and announcements, I want to get all sub announcements of particular announcement, so my query looks ...
3
votes
1answer
31 views

Setting X-RequestDigest from html page

I have html page in an app, I want to submit data to sharepoint using REST, so I don't have access to $("#__REQUESTDIGEST"). How do I get the request digest from my html page? Thanks.
2
votes
0answers
40 views

Cannot create listitem REST API in SP 2013 with contributes rights

I have an issue with our Travel Tool based on SharePoint 2013. This tool consists of different Content Types - all in their specific lists (travel requests, train rides, flights, etc.). There are two ...
4
votes
2answers
162 views

Get all minor versions of a list or library using REST

I need to get information about all the minor versions of a specific list or library using REST API. I tried it with '_api/web/getchanges' But it didn't get what I wanted.
4
votes
1answer
1k 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 ...
12
votes
4answers
3k 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
0answers
11 views

InheritedFrom property not appearing in permissions object in OneDrive for Business 2.0 api

When retrieving items permission using the OneDrive v2.0 API, the "inheritedFrom" property/object is missing. I'm getting the rest of the details: the permissions object, roles, granted to, and even ...
0
votes
2answers
648 views

500 internal server error when ReST query executed from the SP host machine

We have SharePoint 2010 hosted on Windows Server 2008 R2 server. We are trying to access the data in the SP lists using REST queries (GET) such as ...
1
vote
3answers
2k views

Error: The security validation for this page is invalid

I have as simple function to just upload 1 document in 1 library. I made a REST service as part of a SharePoint solution which I deploy/debug against sp2013. However the list.Rootfolder.Files.Add ...
0
votes
1answer
48 views

Move Sharepoint document Library files to other site using REST withour executor method

Move SharePoint document library files to another site using REST API calls without using the SP.RequestExecutor object. I just tried the Copy to and Move to methods, but these methods are working in ...
1
vote
2answers
81 views

SharePoint Rest api to get a single user profile property [duplicate]

I'm trying to retrieve a single user property from a jsom script. The property is a custom one, not in the default schema. When I retrieve ...
1
vote
1answer
204 views

REST call to move a file/folder to another location

I am trying to move a file/folder from one location to another using a REST call, but I am getting the following error: { error: { code: "-1, ...
1
vote
1answer
44 views

How to encode a list name for REST in sharepoint 2013 [duplicate]

I created a list in the en site called hello's~`!@#$%^&*(){}[]:;"'<>?/\|*-+. What I am trying to do is figure out what exactly is the encoded version of the name if I am trying to target ...
0
votes
1answer
33 views

Best way to encode list names in sharepoint 2013 rest url's?

In SharePoint 2013 rest url's, some of them includes a list name which is passed by a user (in the web part settings) which I then use in a web part. I then stick the list name in a rest url, but now ...