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)

6
votes
0answers
84 views

How to create ContentType with FieldLinks using REST on O365

I'm trying to create a ContentType with FieldLinks using REST only (no SP.ClientContext) on SharePoint Online, but I'm not able to make it work. Creating ContentType by POSTing to ...
3
votes
0answers
35 views

Getting back-end data and displaying it in the client

My SP Admin level is strong. My SP dev level is beginner. I know some JavaScript. What is the best method of bringing Server and Farm information from the back-end to the client-side? For example, ...
3
votes
0answers
154 views

sharepoint workflow rest api add role assignment exception

I develop a workflow and i want to grant unique permission on item in list using sharepoint rest api ...
2
votes
0answers
23 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 ...
2
votes
0answers
35 views

How to get random user profiles in SharePoint 2013 restful api?

In SharePoint 2013 restful api, is there a way to put in the url for user profiles, that you want say 5 random items from the target list? I don't want to download the whole thing and then take 5 ...
2
votes
0answers
37 views

REST Call to Post a Reply to a Discussion Board Topic w/o JSOM

I am trying to find a way to post a reply to an existing discussion on a Discussion board using the REST API. I cannot find a way to do this. I can only create a new discussion topic using REST. I ...
2
votes
0answers
31 views

Is there a way in SharePoint online to programmatically find out how many users are assigned a SharePoint license in Office 365?

Basically we have a provider hosted app that needs to check the number of users in an Office 365 subscription that are assigned to a SharePoint license. Maybe some sort of Office 365 API?
2
votes
0answers
36 views

Access denied while creating subsite from workflow

I am following this article to create a subsite from workflow. I am getting following error {"error":{"code":"-2147024891, ...
2
votes
0answers
111 views

How to get the Search REST API sort to not be case sensitive?

I am using the Search REST API to get a list of users, and am trying to sort the results by last name. However, the sort seems to be case sensitive. Is there a way to change the way items are sorted? ...
2
votes
0answers
26 views

Best way to filter by distribution groups user is in and show assigned to tasks for that group

Basically, the goal is that there is a task list web part that will use REST services to see what distribution groups a user is a part of and the view will filter based on if any distribution groups ...
2
votes
0answers
305 views

Querying multiple lines of text column via REST API

I am trying to query a simple multiple lines of text column on a custom list in SharePoint 2013 on-prem. Whenever I include the text column in the $select fields I get an error that the field is not ...
2
votes
0answers
227 views

SPException error codes and meanings (refreshing form request digest via SharePoint REST services)

Where can I find a list of error codes and their meanings for SharePoint exceptions? I can't find any list of any kind online, just specific cases here and there. My specific need arises out of the ...
2
votes
0answers
104 views

SPListItem.BackwardLinks equivalent in CSOM, JSOM, or REST?

In the Server API for SPListItem there is a property called BackwardLinks that returns a collection of items that link to the item. I don't see the same property in CSOM, JSOM, or REST. Is there a ...
2
votes
0answers
229 views

Workflow getting Access denied when calling the rest web service call

I have followed the MSDN article to give app permission to the Workflow and added the app step in the Workflow with elevated privilege. Under this step, made a web service call to {web ...
2
votes
0answers
226 views

Approve folder in document library from Rest API (SharePoint Foundation 2013)

I am able to approve files easily enough with the url var url = SPAppWebUrl + "/_api/SP.AppContextSite(@target)/web/GetFileByServerRelativeUrl('" + filePath + "')/Approve(comment='AutoApprove - " + ...
2
votes
0answers
271 views

using sharepoint OOTB DragDrop.js library in Custom webpart

I implemented drag and drop file upload functionality with using REST api in my webpart . But i found an OOTB sharepoint dragdrop.js library which has numerous methods to create drag drop control. ...
2
votes
0answers
178 views

GetUserEffectivePermissionInfo for the 2013 Rest API

Does anyone know if there is a client-side (preferably REST) equivalent to SPSecurableObject.GetUserEffectivePermissionInfo(username)??
1
vote
0answers
27 views

Get uploaded document id using JQuery

I need to get document ID of newly uploaded document using JQuery, any help highly be appreciated. I'm trying below code which is not working error, 404 not found. function getListData() { var ...
1
vote
0answers
23 views

Invalid JSON error while checkin of file on IE

I am facing an issue while checking in the file using REST API. The code below works Chrome Firefox and IE except the version 11.0.9600.17914. I tested it on my local IE version 11.0.9600.17905 and ...
1
vote
0answers
55 views

Keep getting a 400 Bad Request when trying to create a Site via REST API

I'm quite new to Sharepoint stuff, and currently am trying to interact with the REST API. I have been able to get all kinds of data without much problems by sending GET reuqests, but sending POST ...
1
vote
0answers
40 views

Finding all personal sites in my site collection through REST API

I want to know if there is any way I can get the entire list of My Sites (personal sites) with in the My Site collection for a tenant. So I'm looking for all sites under ...
1
vote
0answers
54 views

REST update not working

I am having problems updating list items using REST calls within an angularjs SPA. I've tried HTTP and ajax methods but both do not work and give different errors. (I am only trying to update ...
1
vote
0answers
31 views

invoke rest api office 365 powershell

### ENVIRONMENT SETTINGS $user = "domain\user" $pass = "thepassword" $doclib = "Documents" $url = "http://localhost/sites/teamsite" ### TOGGLE DEBUG MODE $debug = $FALSE ### DO NOT MODIFY $headers = ...
1
vote
0answers
69 views

Filter by calculated column with rest api in Sharepoint 2013?

Apparently you can't filter by calculated column with Sharepoint 2013 rest api? The calculated column in question returns a string. ...
1
vote
0answers
76 views

Sharepoint REST API filter eq with value containing % in Value

I am trying to fetch a record using the Sharepoint REST API, where the property Title contains a % in the actual value. And sharepoint REST API always returns empty value. Example : If my Title ...
1
vote
0answers
126 views

Image file corrupted upon upload via REST

I have been attempting to use REST to upload image files to SharePoint but am running into the same issue again and again. The issue is that while the image file uploads to an image library, it shows ...
1
vote
0answers
131 views

On Premise SharePoint 2013 host web Rest api cross domain access from MySite

We are using the OOTB REST api to access data from the Host Web App using JavaScript. The MySite has been set up under a separate Web App following the recommendations of Microsoft. This site needs ...
1
vote
0answers
35 views

How to convert List Name and List Field Display Names to REST API?

I'm using SharePoint 2010 REST API and noticed the a unkonwn (at least to me and to my searches) translation function is applied over List Names which go in the URL and to Fields Names in the results. ...
1
vote
0answers
37 views

Thesaurus terms ignored when search is queried through REST

I have a SharePoint 2013 portal running enterprise search. I have imported some thesaurus with the Import-SPEnterpriseSearchThesaurus cmdlet. For example, let's say as a test I have associated the ...
1
vote
0answers
39 views

access_denied error in 3-legged oauth flow for sharepoint app

I have installed the app(tenant level) from Sharepoint store and the app gets installed successfully for every one in the organization. While doing 3-legged authorization flow, after executing ...
1
vote
0answers
13 views

Service account to access data without being able to log into the web interface?

I've been asked a tricky question. Here is the schema. A user have access to a custom web interface, no SharePoint. He wants, through this interface, to access data on SharePoint. He has no account on ...
1
vote
0answers
123 views

How to retrieve a SharePoint list item using document ID only

How can I retrieve a SharePoint list item using just the document ID? I am accessing a SharePoint 2013 server (with document IDs enabled) remotely from a .NET application. I do not know which site or ...
1
vote
0answers
54 views

How to dynamically change the drawing path in Visio Web Access Web Part

I am wondering if there's any way to dynamically change the drawing shown by a visio web access web part. I have multiple drawings I want to show on a page based on what users click on the page. Any ...
1
vote
0answers
30 views

Changes made in Sharepoint web interface to list aren't reflected when using REST method

I've got a Sharepoint list to which I've added some columns, like so: Now, I've been able to pull data from Sharepoint using the super awesome Rest API, using the below PowerShell code: $Items = ...
1
vote
0answers
79 views

Apps Permission Request XML for Workflow, and Rest Workflow Help Please

The documentation on msdn is pure junk if you ask me, for setting up App permissions in a Workflow. Here is the link ...
1
vote
0answers
97 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. ...
1
vote
0answers
33 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
0answers
123 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
0answers
98 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
0answers
43 views

Make users accept a policy before they can use the solution - SharePoint - REST

First time a user logon to the system they should get a "policy" that they should accept. Without the accept on the policy they cannot use the solution! I've created a custom user property on every ...
1
vote
0answers
110 views

Sharepoint 2013 Search REST API return lack of result with exact phrase querytext

In sharepoint foundation 2013 search REST API. I used double quotes to find exact phrases in document content which was attached in my sharepoint list item. "/_api/search/query?querytext='\"" + query ...
1
vote
0answers
171 views

SharePoint 2013 upload(and resize) image with REST api problem

I am trying to create an SP2013 APP, the user should be able to upload an image to a SharePoint list. The image needs to be resized before it is being uploaded. I got the upload function to upload the ...
1
vote
0answers
394 views

Set value in web property bag using REST API

I am trying to manage web properties from property bag using REST API. It is pretty straightforward how to get the values var url = "https://site.sharepoint.com/_api/web/allProperties"; $.ajax({ ...
1
vote
0answers
128 views

SharePoint 2013 REST call with CopyTo causes a not well formatted JSON Stream error

I have written an SharePoint hosted App that performs a local file copy .. first I tested my url with a valid REST call listurldir = "/appsdev/Marketing Lib; itemurl = "/Marketing ...
1
vote
0answers
49 views

How to associate an existing site column to a list using the REST API

In SharePoint 2013, I have a site column that already exists and I'm trying to associate it to an existing list using the REST API. I found examples on adding a new column to a list using the REST API ...
1
vote
0answers
397 views

Problems making REST POST requests to SP-Hosted App with Postman

I am facing problems when making REST calls of type POST to my Sharepoint Hosted app with Postman in Chrome. GET type calls work fine. For example, I want to make the following call on my app to get ...
1
vote
0answers
410 views

Odata Syntax to Orderby a Lookup Column Result

I have need to order an Odata call by by the results of a lookup list. I am having trouble using the $expand operator in tandem with the orderby operator. What changes can I make so that my Odata ...
1
vote
0answers
18 views

How could i include the full url using rest api

var queryUrl = appweburl + "/_api/SP.AppContextSite(@target)/web/webs?$select=Title,Url&@target='" + hostweburl + "'"; i want to include the hole url like this http:///site/_api/ and so ...
1
vote
0answers
81 views

Odata Queries and Date Fields

I have a calculated field that contains the logic if(date) {Yes;} else {No;} This works fine for the column's calculation, but I either need to get the result of the calculated field or need to ...
1
vote
0answers
189 views

Sharepoint app REST Authorization Header

I have developed a Sharepoint app that I installed on my sharepoint site for testing. I filled it with data and now I want to run REST queries on my app with Postman in Chrome. Once I am logged in to ...