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

How to dynamically adjust Subsite Logo using the Call http Web Service action

I've been trying to build a workflow which automatically generates a subsite. Since these subsites are projects under a variety of the company's clients, it would be nice if each project site could ...
1
vote
1answer
294 views

PublishingPageImage Field is missing when get data through Rest Api to Pages Lib 2013

I want to get PublishingPageImagefield value on REST API method on Pages library with below script. executor = new SP.RequestExecutor(appwebUrl); executor.executeAsync({ url: appwebUrl + ...
0
votes
3answers
193 views

get the attachement files from REST API

I use REST API SharePoint 2013 to get the items from list: And and I want to get the Attachments Files, How can i do that? This the code : function getListItems(url, listname, query, complete, ...
0
votes
0answers
7 views

How to retrieve site data from SharePoint on cloud and store them at SQL server

I currently use SharePoint on cloud at Microsoft 365 and need to retrieve few data including site title(name), site URL, site owner and also its parent site and subsite title and owner ...
0
votes
1answer
794 views

upload attachment to SharePoint List Item using REST API from Java client

Following Java code is an example for uploading a file attachment to the SharePoint 2013 list item. String uploadquery =siteurl+ ...
-1
votes
1answer
65 views

How to format SharePoint Rest API Data after calling a list item by ID?

I'm using a rest call to pull data from a SharePoint list by item id. I was able to verify it pulls the list items by id, but I'm running into an issue formatting the data. Any suggestions would be ...
0
votes
1answer
91 views

How to return multi-value fields via SharePoint Rest API?

After reviewing my results, I realized one of the sharepoint columns only returns one value. How do I get it to return each value from my Role Column? It should look like this: Title: FDA Program ...
0
votes
1answer
43 views

How do I format SharePoint Rest API Results?

How do I get my SharePoint Rest API Results to return like so: Title : FDA Project RioBravo Module: Primary Training Roles : Project Manager, Lead Agent versus the way this returns them like so: ...
0
votes
0answers
45 views

StartUpload method REST API

I've been looking to use the following in the REST API http://msdn.microsoft.com/en-us/office/office365/api/files-rest-operations#FileresourceCreateorupdateafile Has anyone been able to use this ...
0
votes
2answers
53 views

How do I use SharePoint Rest API to query list for a field resulting in one row of data?

I've been able to pull data for a specific list, but unable to filter it down to one item, where the Field called "File Name" equals drugdealers. Any assistance would be appreciated. <script ...
5
votes
3answers
211 views

Turn off ability to use REST API

When you don't want users to use any web services it seems like you can turn off the permission to Use Remote Interfaces. However that permission does not mention REST. This made me wonder if there ...
2
votes
0answers
92 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 ...
1
vote
0answers
42 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 ...
0
votes
1answer
28 views

How chould i get title where “Title characters contains input box then get the values”

i am trying to get the title if it contains the characters in an input box So first if the user types ABC, then get the titles that contains A,B or C $("#subSiteTitle").keypress(function () { ...
1
vote
1answer
36 views

how to only get title of subsite and not display title of app also

right now this code writes out the subsites title and relativeurl, but it also includes my title of my app, but i only want to display the subsites title and not title of the app also, Any ...
1
vote
0answers
14 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 ...
3
votes
2answers
85 views

REST $filter when comparing 2 date columns causes error <nativehr>0x80070057</nativehr><nativestack></nativestack>

I'm using the on prem SharePoint 2013 REST API and I'm getting an error when I try to compare two date fields. $filter=ExpectedDelivery gt NeededBy The above query works perfectly using ...
-1
votes
1answer
26 views

Unable to use string functions in REST query

I am querying for duplication of column name in the web using REST query. My query is as per below: ...
0
votes
2answers
64 views

How to search for all subsites title and url using Rest

I have a autocomplete search box when typing in my box I want to display the title of the subsite and also url Here is my search box <div id="searchfield"> <input type="text" ...
0
votes
1answer
29 views

Send Email when Sharing file/Folder

Is it possible to send an email when sharing a file or folder through the REST API. Below is the screen I am referring to, I can share the file/folder. But would also like the option to send an email ...
0
votes
1answer
59 views

Sharepoint Online Javascript get calendar events using rest

Ive tried to fetch calendar events using this: _api/search/query?querytext='ContentClass:STS_ListItem_Events EventDate>10/10/2014 ...
0
votes
0answers
26 views

Got error 'The root of the certificate chain is not a trusted root authority.' while using sharepoint REST API

I created Sharepoint Provider Hosted App and installed on my sharepoint account. I got access token(App only token). I am using Sharepint REST API to list files and folders of all users Now the ...
1
vote
0answers
39 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 ...
2
votes
2answers
192 views

How to get SPFieldChoice values using rest api SharePoint 2013?

I have a choice field in my list. I can get it values using server object model by following way List<string> fieldList; SPList spList = spWeb.Lists[listName]; SPFieldChoice field = ...
0
votes
1answer
31 views

Filtering a REST call with a View

I have a list in SharePoint I want to make a REST call to access it. I need to filter this list by an Alert Yes/No field. The field is called Alert and I try to filter it on "true" but the results ...
0
votes
0answers
69 views

SiteUserInfoList not updating

I am running a workflow that Calls user information from http://site/_api/Web/SiteUserInfoList/Items(<UserID>) The workflow is pulling the information just fine however I noticed that not all ...
0
votes
0answers
33 views

PUT and POST methods with REST in SharePoint

We cannot create a list item using PUT method in REST, it gives a bad request error. The REST reference suggests that the PUT method is generally used to update resources. Is there a clear ...
0
votes
1answer
63 views

SharePoint 2013 OData $filter seems broken with date functions

I am using SP2013 SP1. I am trying to perform the following OData opertaion from a client app that contains an External Content Type. The ECT points to a ASP.Net OData service. My Javascript code in ...
1
vote
2answers
107 views

Grant Unique Permissions on List Item through Workflow

I have a workflow set on a list that will read a Person field, and I want this workflow to change the permissions of the user(s) in this column to have full access when they normally would only have ...
1
vote
1answer
42 views

Issue with $skip in REST API

Here is a sample list i am using I am testing some REST filters in the browser directly and checking the XML feed returned by the REST request. Below is the REST query which I used to get the first ...
0
votes
2answers
39 views

REST api Bad Request file replace

I'm using sharepoint REST api using JavaScript to replace a file in a doc library. Here is the url structure I'm using. <!-- language: lang-js --> props.webUrl + "/_api/web/lists(guid'" + ...
0
votes
1answer
311 views

RoleAssignments with REST API and oAuth

I'm attempting to use the REST API to migrate files from our users' personal sharepoint sites (e.g. http://organization-my.sharepoint.com/personal/bob@organization.onmicrosoft.com). The account which ...
0
votes
1answer
24 views

Populate mailto link using REST

I have only had experience with using REST in a SPD workflow. How can I use jQuery with REST to have a user click a button and open up a mailto: link and have that link mail to the users returned ...
0
votes
0answers
33 views

REST get all roleassignments for particular user

I would like to get an overview which would show me what can particular user see in our Sharepoint Site - in other words what are all his role assignments - in groups and also lists and in other ...
1
vote
2answers
46 views

GetChanges REST call from java returning status 400

I'm trying to use the GetChanges REST API call in SharePoint 2013 from a standalone Java app using Apache HttpClient. The JSON body in the POST request body looks like this: ...
0
votes
1answer
48 views

get items between do two date REST API [duplicate]

can i get the list of items between two date like ? var startDate. var EndDate. var queryGetDiscussion = "?$Date between(startDate, EndDate) "; Or using LT and GT.
4
votes
1answer
483 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: ...
10
votes
3answers
5k views

REST POST: How to add a list item with 'people and group', 'choice,' and 'URL' fields?

I am trying to create a form for a SharePoint Hosted app that will allow users to request a teamsite. The form writes to a list that is contained in the SharePoint site collection, from which a timer ...
0
votes
1answer
126 views

Get documents and folders in SharePoint 2010 list's ROOT folder with REST

There is a question about getting files/folders in some SharePoint folder. There is advice to filter list items by parent folder path. But how can I list files/folders in the List itself? With REST I ...
1
vote
0answers
80 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 ...
2
votes
2answers
483 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 ...
0
votes
2answers
163 views

The length of the URL for this request exceeds the configured maxUrlLength value. REST API

I was wondering if someone could help, or am I missing something. In the articles found here http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx#bk_FileStartUpload They refer ...
7
votes
2answers
240 views

What is the permission level for REST Query?

If I execute the REST Query using JavaScript and I am logged in to the SharePoint with Visitor privileges then will my code be able to query the administrative data like getting the column name and so ...
1
vote
1answer
153 views

Getting document name using REST (not title) while filtering document library

I am trying to filter through a list and return metadata of the documents in that filter. How do I return the name of a document from a document library using REST while being able to filter the ...
0
votes
1answer
15 views

How to display latest created image from a picture library in a page?

There's a page where i need to show the latest created/uploaded image from a picture library. I did the following URL to retrieve that information to me (in JSOM): ...
1
vote
1answer
37 views

how to get last ten item with REST API

I need to get the last ten created item from my list ; I used TOP in my query but this it doesn't work , still give me all items without filtering : this is my query : var queryGet= "?$filter=Title ...
2
votes
1answer
686 views

Copy List items using REST/JSON

I'm very new to REST and JSON, I want to copy list items from one list to another list in the same site on button click, both the lists are of same type but with different column names and they are ...
1
vote
0answers
42 views

MVC web api in sharepoint 2013 farm solution

How to consume the MVC web api in SharePoint 2013 farm solution? When I try to consume with httpclient I cannot refer to the assembly WebApiRestService.WebApiClient, it's showing error as not strong ...
4
votes
2answers
197 views

How to obtain User Field Properties in Lookup List via Rest Api

I have a List (Topics) which has a MultiLookupField to a List named (Speakers) Speakers has a User Field (UserName). What I'm trying to do is to read some of the User Fields Properties. Which works ...
0
votes
1answer
101 views

How to get Principal Id of a User in Workflow

I am trying to set unique permissions on a list for specific users, and in order to do this I must be able to pull the principalId of the user from within a workflow to be used in a REST call in the ...