Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [sharepoint-rest-api]

Using the Representational State Transfer (REST) interface provided by SharePoint

2
votes
1answer
1k views

Changing the owner of a group via REST API

I'm trying to change the owner of a group via the REST API. I'm working entirely within the host web, so no cross domain calls from the app web. If I run the below code, it succeeds and changes the ...
0
votes
1answer
24 views

SPOL REST api url not functioning with a SPOL do lib

I am using REST with SPOL and I am trying to get a image from a image doc. The way I would usually do it works fine for me because I am using a relative url to the picture. The ways I usually do ...
1
vote
2answers
726 views

How to fetch list items in a sharepoint 2013 site from a list in an another sharepoint 2013 site?

I have a SharePoint site A, and i would like to get the list items from a list that is in a different SharePoint site say, site B. Note: Site A and Site B are not two subsites within in the same ...
2
votes
0answers
188 views

REST API DELETE call not working

I have a custom SharePoint site built using Angular JS & custom REST service built in C#, which Add/Edit/Delete items in SharePoint lists. The site is exposed externally. The problem I am facing ...
0
votes
1answer
838 views

Not able to post a new list Item to SP list using SP-REST

I am having issues adding a new list item to SP. I am making an XMLHttpRequest, however I am getting the following message: "message":{"lang":"en-US","value":"The HTTP header Content-Type is missing ...
0
votes
1answer
268 views

404 error while calling two rest api services

I wanted to request two api services- one to get the list of users of the site using this api: _api/web/lists/getbytitle('User Information List') and based on the response wanted to call another api: /...
0
votes
1answer
687 views

Error on SP.RequestExecutor in sharepoint online: Object doesn't support this action

I am trying to do a simple search using javascript in SharePoint online but I am getting the following error:Object doesn't support this action. The error is thrown right here: var executor = new SP....
0
votes
0answers
843 views

Sharepoint Rest API to list with Lookup columns

Actually I am new to SharePoint Rest API stuff, I appologize in advance if my query is silly. I have list which have columns of different types. I am suppose to make ajax call to this list and fetch ...
2
votes
1answer
624 views

REST API Workflow Task not change its state

We are shifting our code from .Net - C# to REST API for Workflow TASK Approval process. We have successfully change the update item in Workflow Task list, but Workflow not change its status using ...
0
votes
1answer
439 views

Web API for Most Popular Items and Trending Items in Sharepoint 2013

I want to create an html and display popular and trending items from my list. How can I get this information, is there an API for that?
2
votes
3answers
1k views

REST MERGE ListItem forbidden (403) SharePoint Online

In SharePoint Online I need to Update item in Workflow Task List using REST API on same server. I am receiving 403 forbidden error, but I am on the same error and unable to identify why should I am ...
0
votes
1answer
26 views

keep save text data in texbox of a web part

how can i keep save data in a text box even after i reload the page. i have made a text box and save button. when we click save button it save data in the list. but the data in the text box should not ...
0
votes
1answer
60 views

Can I get AssignedToId using rest api

I need to get AssignedToId, I have threshold 5000 items so i can't using filter. This code throws error at : AssignedTo.Id. Help me fix this? $.ajax({ url: "<domain>/_api/lists(guid'285E8476-...
3
votes
1answer
775 views

REST excel services

I'm following this tutorial on using Excel Services REST api and trying to read a range. If I paste the url into my browser it works and I see the range in my browser. http:<site>/_vti_bin/...
1
vote
0answers
88 views

SP Document Set Welcome Page - Additional Look and Feel Needs

I was reviewing a Q & A on this site discussing a nice way to update the look and feel of the Document Set properties using REST API and jQuery. You can see what I am referring to by going here. ...
1
vote
1answer
145 views

Create Grid using javascript object model

I got a requirement to create a GRID using JavaScript object model. I have a list named SummaryResults with columns TaskID(Single line of text) Questions(Multi line of text) Response (drop-down with ...
1
vote
1answer
415 views

REST - Get expanded property data for use in angular

I am trying to figure out how to get the expanded property data and be able to use that data in my angular code. REST call to get expanded property Data: /_api/Web/GetFolderByServerRelativeUrl('...
1
vote
2answers
267 views

How to move / copy documents from one SharePoint library to another SharePoint library on different farms Using Event Receiver?

We have requirement to move /copy documents from one site to another, sites are on different farms( totally different environment). We can can copy items if library in same application/ site ...
0
votes
1answer
235 views

How can I work out if site has broken inheritance or not already using REST API

I'm needing to do all my commands using the SharePoint REST API. Is there a property somewhere in the REST API calls that tells me if the site has broken inheritance or not?
0
votes
1answer
286 views

SPD 2013 REST API? how to extract checkbox field values from d/results?

How do I get checkbox field values from d/results? Is there an extra definition needed?
2
votes
1answer
2k views

URL request length limit when using REST APIs

Are there any URL length limitation when making a GET request using REST API to SharePoint? I've been investigating for a while now, all I can see are inconsistent answers. Microsoft documentation ...
2
votes
2answers
2k views

SPD 2013 Workflow BadRequest

I am stuck getting a BadRequest when trying to post to a list. I can't see what the problem is. I am hoping someone can point me in the right direction: I believe my Request header and metadata are ...
6
votes
2answers
1k views

When using SharePoint 2010 rest api - /_vti_bin/listdata.svc/UserInformationList, what is difference between Name and Account

In SharePoint when I call the listdata.svc/UserInformationList, can someone help me understand Account versus Name? <content type="application/xml"> <m:properties> <d:Id m:type="...
6
votes
2answers
3k views

REST API Limitations On Premise and Workarounds

I am just trying to understand the Limitations of the REST API in SP 2013 On Premise and it's workarounds. Can anyone please contribute with proper references? Some of the limitations I have heard ...
0
votes
1answer
401 views

Retrieving the FirstName, LastName and Department when using the REST API and calling SiteUsers

I normally use ClientContext to connect to SharePoint and use SiteUserInfoList to retrieve the list of SharePoint users. (I need to copy the data into an SQL Server database.) Disappointingly, this ...
4
votes
0answers
126 views

Rest API Data filter from Lookup column by current user and show in dropdown

I want to show data in lookup column. from a list which contains lookup column and Username and another list which contains lookup value. Example: List1 contains Text column value and List2 ...
1
vote
1answer
166 views

REST/Ajax code run without error but return no items

List already have 5 items. But Sharepoint hosted app with given code run without error but return no items. Strange! var hostweburl = decodeURIComponent(QueryString.SPHostUrl); var appweburl =...
1
vote
1answer
3k views

Sharepoint hosted app REST call to list items shows Access denied. You do not have permission to perform this action or access this resource

Following code in app giving exception "Access denied. You do not have permission to perform this action or access this resource". Even I have allowed permission "APP > MANAGE PERMISSION > TRUST IT". ...
0
votes
1answer
1k views

Search REST API to filter Custom Managed Properties values

I am using below mentioned query to get items from SharePoint lists(based on specific source results). However, I would like to add filters to "Column1" in below query itself. So, that i can restrict ...
0
votes
1answer
169 views

Update REST API SharePoint Online

I execute this function updatemainop() in my script: function updatemainop() { var itemType = GetItemTypeForListName('MainOperation'); var query = applink + "_api/SP.AppContextSite(@target)/...
-1
votes
0answers
172 views

Solution for exporting data from a list to the template excel documents

Please suggest how to create a solution for exporting data from a list to the template excel documents? My ideas are: Write solution using server code and Open XML Don't know, but may be somehow ...
5
votes
2answers
1k views

How can I know REST API request done?

I use in my application a request REST API which works asynchronous. How I can do to know the request is done?
3
votes
2answers
885 views

Sharepoint Online Rest/Api, Join multiple List

Environment: SharePoint Online I use Rest api to communicate with my lists. I must now, show a list which joins 3 lists: List1 : ID, Title, Field1_Loockup(List2.ID) List2 : ID, Title, ...
2
votes
0answers
209 views

Not getting an the image rendition option when using SP Rest api

I been trying to make out the URL in order to make a REST call which will fetch an image rendition from SP and then grab its value in order to convert it to base 64. I have been playing with the URL. ...
0
votes
2answers
3k views

SP.RequestExecutor is not a constructor

I use sharepoint online, I have a problem whe I load my page. I want to show a list with Rest/Api but I have this message : TypeError: SP.RequestExecutor is not a constructor I think scripts is not ...
1
vote
2answers
2k views

SharePoint 2013 REST API : can't able to get “Calculated Fields”

It's been really strange, as per MSDN Link, they shows that Calculated fields can be get using REST query. But when I am actually try REST queries like : http://Server/_api/web/Lists(guid'2B3BD6CD-...
5
votes
1answer
2k views

How to Get Lookup column using lookup column using REST API

I have one summery custom list in which I have lookup column of detail list. So I am retrieve all data from it using expand it. But in detail list I also have one lookup column of personal Detail ...
2
votes
0answers
582 views

Search REST API Custom managed property return null

My Custom managed property in Search REST API bring's null value in SharePoint Online. /_api/search/query?sourceid='A09A7990-05EA-4AF9-81F-FEDFAB16C4E31'&selectproperties='Title,mycustomColumn'. ...
1
vote
1answer
856 views

CSOM / REST / Web Service Support for Auditing

I came to know from the below link that Microsoft has added CSOM / REST support for Auditing APIs in the future versions. By future versions, do they mean only 2016 or even 2013 also? Any idea? Has ...
0
votes
1answer
1k views

SharePoint REST API CAML Query error : “Every two elements in an array and properties of an object must be separated by commas."

While quering with the CAML query in the SharePoint REST API throws following error. { "error": { "code": "-1, Microsoft.Data.OData.ODataException", "message": { "...
4
votes
3answers
2k views

$batch operations on SharePoint 2013 on-premise not working

I need to do bulk inserts and learned that there is the $batch operation in the REST API. https://msdn.microsoft.com/en-us/library/office/dn903506.aspx I read through this and following and explored ...
4
votes
0answers
1k views

Authenticate to SharePoint REST API from external service

I am trying to figure out how to authenticate calls to our on premises SharePoint 2013 REST API. So far, I've come across a lot of blogs that show you how to do it for SharePoint online. Here's one ...
1
vote
0answers
186 views

SharePoint REST API & CAML query integration Online Add in/App

I am trying to integrate CAML query in rest API and trying to get data from a SharePoint List residing in host web. I am using method: function getDataWithCaml(listName, caml) { var executor = new SP....
3
votes
0answers
249 views

Uploading Large PDF Files in Sharepoint Library

I want to upload large PDF Files in a Sharepoint Library . I tried from normal code from GetFolderByServerRelativeUrl method and it is working fine , but taking too much time.(for ex. a PDF of size ...
3
votes
1answer
1k views

SharePoint 2013 REST API call Threshold limit

I am fetching data from a list using REST call. I have added filter query in the REST url also the the column on which filter operation id done is set as Indexed column in the list. The no of items ...
3
votes
0answers
700 views

Search query for keyword search in a particular list Sharepoint Hosted app/add in Online

I am trying to add keyword search functionality using REST api on a particular list. I have got the result using the query as : var queryUrl = appWeb + "/_api/search/query?querytext='" + keyWord + "+...
1
vote
0answers
743 views

How to update a row without using ID in REST API?

The above image is my sharePoint list, I want to update the row where year is 2016 and month is 8 without using Item ID I have tried using PATCH method but the following error occurs: The type SP....
-3
votes
1answer
337 views

SharePoint REST API unread/mention count

I like to retrieve unread/mention count using REST API but I do not know how to begin? Can anyone tell me how should I begin and do I need any credentials when consuming the REST service?
1
vote
0answers
110 views

You do not have permission to perform this action

I am facing this issue while trying to add users to SP group using REST and Jquery. While adding the user prompt comes asking for username and password, after I enter my credentials it does not ...
2
votes
1answer
1k views

Sharepoint 2013 Adduser and groups using REST API

I've a requirement to create user in a SharePoint using the REST API and c#. How to achieve this? Most of the article show using REST API in jquery and JavaScript but I've a requirement to do this ...