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

How to get 1 specific site property in SharePoint 2013 REST api?

In SP2013, I want to get a specific property I made in sharepoint designer. If I use the url http://mysite/_api/web/AllProperties then I can get all properties including the one I want, but how can ...
1
vote
1answer
21 views

User Permissions Binary Representation Map

I'm trying to get user permissions using the REST API. At the moment, I can call an endpoint like this: _api/web/lists/getbytitle('Documents')/getusereffectivepermissions(@u)?@u=%27i%3A0%23.f%...
0
votes
0answers
24 views

Consistent way to create FieldLinks within content types using javascript

Word of caution: This question is related to question How to create ContentType with FieldLinks using REST but is more specific as we are looking to find a solution until (if?) MS brings the API ...
0
votes
1answer
35 views

SPFileCollection.Add REST endpoint

I am working on a project where I need to copy a document from one site to another site in Office365. I want to achieve this using SP designer workflows. I learn that I can use SPFileCollection.Add ...
1
vote
2answers
32 views

How can I populate a dropdown with a SP list?

I have a SP List with data that I need to be in a dropdown list. I also need these to have specific classes. I'm trying something like the following but having no luck: $().SPServices({ ...
0
votes
0answers
13 views

EnableAssignToEmail on List Creation via REST

I'm creating a task list using the REST API. This is what the beginning of the list's properties look like: "__metadata":{"type":"SP.List"},"AllowContentTypes":"true","BaseTemplate":171,"...
1
vote
1answer
65 views

Sharepoint REST call to get file by ID - GetFileById fail on 404

There are some files. when I'm trying to get their content by ID (GetFileById) I'm getting 404 Not found error. I'm getting the file unique id from the item properties and then trying to get the ...
1
vote
0answers
31 views

URL Length restriction on GetFileByServerRelativeUrl

I'm trying to get file by using GetFileByServerRelativeUrl and getting the url length restriction error. In some posts I see that people recommend to use this call with parameter , like this : https:/...
0
votes
2answers
32 views

Is there any way to overcome URL length limitation in REST API “GET” Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
1
vote
1answer
31 views

How to save current login name to SharePoint people and group column using angularjs?

Add.js $scope.addEntity = function (entity, $event) { entity.dateString = $("#dpFrom").val(); entity.ExpDateString = $("#dpTo").val(); if (entity && ...
0
votes
1answer
32 views

numeric column/field received through API call always gets saved as 0 to designer workflow variable

When I retrieve an O365 site's list's items in the designer workflow (2013) using rest api call, the Number type columns always get set to local integer variables as zeros. I have inspected the ...
0
votes
1answer
33 views

REST returning [object Object]

I converted a CAML query to REST and one of the fields that displayed the data using CAML now appears as [object Object] when using REST. Why and how to correct. Thanks
0
votes
1answer
19 views

How to Parse GetMyProperties REST Response

This is what the pre-parsed data looks like in the console after querying http://mysharepointsite/_api/SP.UserProfiles.PeopleManager/GetMyProperties?$select=Department : I am trying to get the ...
0
votes
1answer
35 views

Need help using SEARCH REST API

Im currently trying to build a SharePoint Add-in that tells you who's birthday it is on the current date. I would like to use the SharePoint search api for this but im struggling with an issue. ...
3
votes
1answer
55 views

Retrieve Images Not Working Via REST API

I am trying to retrieve Images using the REST API from iOS/Android. The issue I’m running into is when the images are stored in the /sites/siteName directory, the REST call does not work. Let me ...
0
votes
2answers
46 views

Upload document to SharePoint from External Application

I have an external application where we want to show a upload form where documents uploaded should go in SharePoint Document library in the backend. Is there any REST api that can do this job for us? ...
1
vote
3answers
75 views

Tool to inspect json data returned from REST API call to Sharepoint online/Office365 Sites

What tool should I be using to inspect the JSON data returned as a result of making a rest api call to the sharepoint online or Office365 site. The browsers return xml and I am having issues using ...
0
votes
0answers
16 views

JSOM / REST Modify Field EntityPropertyName

I can't figure out how to modify a SPFieldEntityPropertyName, perhaps it be unachievable using just SharePoint javascript API. JSOM context.web.get_fields() setter methods are: Note: I think ...
1
vote
0answers
26 views

OAuth+OpenID+REST JWT Token and Audience working with subdomains?

Ok, so I have used OAuth and gotten my JWT token and I’m having a lot of success using the REST API to do what I want to do (upload/download files and folders) however, when I get a list of sites I ...
3
votes
1answer
60 views

REST document url

I'm using rest to develop an add-in, the URL looks like this: url: appurl + "/_api/SP.AppContextSite(@target)/web/lists/getByTitle('" + ListName + "')/items?$select=FileLeafRef,Modified,...
0
votes
1answer
56 views

Getting no REST data in SharePoint in a html file

I am trying to get some data from a REST Service Url in a html file. This works fine when i am using the code direct in my browser. But when i embedded it into my SharePoint Site it wont work. On my ...
0
votes
2answers
28 views

Is it possible to host a PHP Web Application in SharePoint 2013

I have a PHP Web Application hosted in a site which consumes REST API. I would like to know whether it is possible to host that application in SharePoint? I know you could use Page Viewer Web Part. ...
0
votes
0answers
30 views

Filtering a lookup field based on the value of a choice field in the child list - rest query?

This is for SharePoint Online. I've used some code available out there to create a cascade dropdown field (using a rest query and JSON) but that involves the child list having a lookup field to ...
0
votes
0answers
14 views

No “From Rest Service” Option in Infopath Designer 2013

I was looking to add a rest service call to my infopath 2010 form so I clicked on the "Add Web Service" dropdown. I only have the option for "From Soap Web Service". Am I missing an update or is ...
1
vote
1answer
24 views

_vti_bin/listdata.svc/UserInformationList retreive null DateOfBirth in Sharepoint Online

Im getting the User Information list with this link: https://SiteURL/_vti_bin/listdata.svc/UserInformationList But the DateOfBirth return this <d:DateOfBirth m:type="Edm.DateTime" m:null="true"...
0
votes
1answer
63 views

SharePoint online REST: Get users profile properties

I'm looking for some help with a REST call I'm attempting to make in SharePoint Online. I'm doing an add-in that gives me the name, birhday and photo property of all user in user profiles I tried ...
0
votes
1answer
39 views

SharePoint 365: Updating User-type fields through REST api

On my SharePoint online (version 16.0.0.5312), when I retrieve items through REST api: /some-site/_api/web/lists/getbyTitle('ListName')/items(3), the API returns a new property for User-type fields. ...
0
votes
1answer
32 views

REST Looking for the last created / updated documents in 24h for all workspaces

I am looking for a solution to get all the created / updated documents for the last 24h for all my workspaces. How is it possible via REST API? Like an Activity Feed.
0
votes
0answers
29 views

Papa Parse and SharePoint

So, I have applied Papa Parse to a page that has a view of the list I'm working with. I have successfully read a CSV and logged it to the console. My question is, how do I update all items in my list (...
0
votes
0answers
34 views

I am having trouble with URL's using REST API in sharepoint 2013, for some reason it adds site pages and removes Document Library name

I have recently came across a problem with my code for a Document Library filter using the REST functionality. My code (below) returns all documents and folders correctly but when I open the ...
0
votes
1answer
40 views

REST copyTo Method in SharePoint Online

I'm trying to make a copy of a MS Word document and add it to a document library in SharePoint Online with the below code, which runs once without firing the success or fail message, and throws "SP....
0
votes
1answer
41 views

REST API datetime range not working as expected

Background: In Sharepoint Online, I'm using the Sharepoint REST API for query a few records based on its creation date (column Created). I'm using the following variations of the REST query for get ...
1
vote
1answer
39 views

SharePoint 2010 - REST - retrieve group members

I am building a form using REST and am trying to create a drop down based on a person/group field. '..ListData.svc/listNameFieldName' does not seem to work for those field types and accessing '.....
0
votes
0answers
13 views

Find tags related to a document

I'm developing a Sharepoint-hosted App and I need to acquire the tags which a specific document is tagged with. How is this done? I'm currently trying to solve the problem using REST but I would ...
2
votes
2answers
18 views

Filtering in rest doesn't work

I want to do a simple task, which is to get all the items where the title contains some value. I searched and found the I must use substringof('value',Columnname). But still my rest query is not ...
0
votes
2answers
46 views

SharePoint Site Collection Administrators : Jquery

I have a current logged in User Id and through JQuery I want to find that whether the User Id is in site collection admins or not. $().SPServices({ operation: "GetUserInfo", userLoginName: $()....
0
votes
0answers
14 views

Get child elements in output XML through list API in O365

I am using list api to query my list: https:///_api/web/lists/getbytitle('workflow%20tasks')/items?$select=WorkflowLink and getting result as : <d:WorkflowLink m:type="SP.FieldUrlValue">d:...
4
votes
1answer
81 views

Get MIME type from RESTful API Call

I am currently using Sharepoint 2013 and am using this URI to get some basic metadata about the documents under the document directory: /_api/web/Lists/GetByTitle('Documents')/Items?$select=...
0
votes
0answers
20 views

Find documents by tags

I want to create an Add-In/App that displays documents that the user might find useful or interesting, this is also supposed to be done using tags. I think I know how to get the tags that the user are ...
0
votes
1answer
33 views

How to create multiple fields with their datatypes using REST API?

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
0answers
18 views

SP2013: CAML query return result paged?

I have a list of 2500 items which I need to filter and then iterate through. Since the payload of returning (potentially) 2500 items is too big I need to break it down into small pieces. For this ...
0
votes
0answers
31 views

Updating metadata when uploading file using REST API

Is there a need to update document's metadata every after uploading the file to SharePoint using Rest API?
1
vote
2answers
62 views

Difference between Search REST API and Lists REST API

I'm having difficulty explaining my question, mainly based on the reason for the question itself. So the whole issue is a circular mess in my head. I really have a slew of questions. Please ...
0
votes
0answers
27 views

Content of Content Editor webpart received by REST call? Is that possible?

I may have various GUIDs and paths/files in hand, but still not able to find the inner content of webpart editor via REST call. I have 1) page name and path, where Content Editor webpart is placed 2) ...
0
votes
1answer
45 views

Upload file to SharePoint Online from external application

is it possible or not Upload file to SharePoint Online from external application? I'm looking to use some JavaScript with Jquery or angular to upload files from a asp.net or from another online app ...
1
vote
1answer
46 views

Rest - Error raised on Count items with filters in large list

The solution proposed in the linked thread does not seem to work for me as you can see below.. I have a rather huge list (2500 items) on SharePoint 2013 and I would like to get an idea of how many ...
0
votes
1answer
19 views

Pass data from external form to On Premise?

Are there options to pass data from an external form (ideally) to an On Premise SharePoint. I'm attempting to collect data from external users who won't be granted access to our SharePoint. I see ...
1
vote
2answers
46 views

GetByTitle('Pages')/items?$filter=Id eq xxx error

My service call has the following: GetByTitle('Pages')/items?$filter=Id eq 19 which with the correct encoding is: GetByTitle('Pages')/items?$filter=Id%20eq%2019 which returns me the following ...
0
votes
0answers
41 views

Can Excel Services be called in REST in INFOPATH on Sharepoint online?

A call such as this: https://SERVER.sharepoint.com/_vti_bin/ExcelREST.aspx/Forms/helpers/NetWorkDaysFunction.xlsx/model/Ranges('DateDiffCalculation!A3')?$format=atom Returns data in the browser, and ...
0
votes
2answers
31 views

REST API Get across web applications not working

I'm doing a very simple REST Get to a list of broadcast messages on the web application that serves as our "intranet portal" from the web application we use for team site collections. Both web ...