Stack Exchange Network

Stack Exchange network consists of 174 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 [rest]

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.

0
votes
1answer
902 views

SharePoint 2013 Javascript REST API related: Saving Conflict. code=-2130575305, Microsoft.SharePoint.SPException

I have a function which updates list items. I use fiddler 2 for tracking the traffic. When I stress test the function I get code=-2130575305, Microsoft.SharePoint.SPException error, and the error ...
0
votes
0answers
6 views

Change approval status after insert item via Sharepoint REST API

I recently noticed that by modifying the column of an item in a list with active versioning, however much the item is approved, it changes the status to draft. When faced with this problem I decided ...
6
votes
3answers
3k views

Retrieve all sites and all subsites from the SharePoint REST API

Using the SharePoint Online REST API, I'm trying to retrieve a list of all sites and subsites. This API gives me all top level sites, but no subsites: https://{mycompany}.sharepoint.com/_api/search/...
0
votes
2answers
3k views

The property 'Description' does not exist on type

I am trying to save a list item via REST and sending following piece to SharePoint API: var updatedTaskInformations = { "__metadata": { "type": "SP.Data....
1
vote
2answers
32 views

Rest Search API SharePoint

I am trying to retrieve images using REST SEARCH API from multiple Picture Libraries distributed across sub-sites(sub-sites are all under a single site collection https://xyz/site/*) .I also need to ...
1
vote
1answer
926 views

Create List Item in Another Site Collection Using REST API from Visual Studio Workflow

I have developed a List Workflow in Visual Studio 2013. In this, I am trying to read the current item's Title and create an item in another list in another site collection. Please read the last part ...
1
vote
1answer
946 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
1answer
943 views

POST request for Office365 using REST API

I want to POST method request for Office365 using REST API. For example, Feed/Post, Post/Reply, and Post/Like. Request Header: Accept : application/json; odata=verbose Content-Type: ...
0
votes
2answers
25 views

Why the AJAX function is only executed in the end?

I've this code below: jQuery(document).ready(function() { jQuery.ajax({ url: "https://test.sharepoint.com/sites/test/Negocio/OfertaParticulares/_api/web/folders('Dinamico')/...
2
votes
2answers
974 views

FILES REST API url to list specific folder content

I need to retrieve the items/documents in a specific folder of our Office 365 hosted SharePoint site, but I always get an resource error. I'm trying to use the FILE REST API for this, documented here: ...
0
votes
0answers
27 views

Sharepoint Online REST: ListItemAllFields response DateTime timezones

On some websites, when I get an item by <site-url>/_api/Web/GetFolderByServerRelativePath(decodedurl='<folder-path>/')/listitemallfields , the API returns the Created and Modified ...
0
votes
0answers
14 views

Change Security Group Name(Title) using REST in 2013 Workflow [on hold]

Sorry for the cross-pollenation, but didn't get any traction in TechNet. But, please review here: https://social.msdn.microsoft.com/Forums/office/en-US/35758186-d8b0-4938-82bb-5d27fda0f7ae/change-...
1
vote
0answers
18 views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
1
vote
2answers
39 views

Sharepoint Online REST: API not returning correct info if site collection created before certain time

On older websites (ex: 2018/10), the GET https://msdn.microsoft.com/en-us/library/office/dn499819.aspx#bk_WebEndpoint and GET https://msdn.microsoft.com/en-us/library/office/dn531433.aspx#...
0
votes
2answers
3k views

Sharepoint REST API - Create a List using Javascript

I'm trying to create a list using REST API, the javascript is in a Sharepoint Page, I'm logged as a System Account and every time I run the script I get the following error: {"error":{"code":"-1, ...
0
votes
2answers
15 views

Data from Sharepoint REST API is returning undefined

I've this code below: jQuery(document).ready(function() { jQuery.ajax({ url: "https://test.sharepoint.com/sites/test/Negocio/_api/web/folders('Historico')/folders?$...
0
votes
1answer
1k views

REST GetFolderByServerRelativeUrl not working?

I'm currently trying to retrieve folders and files from my sharepoint server and for that, I'm using RESTful calls. The problem is that the method GetFolderByServerRelativeUrl is not returning a list ...
1
vote
1answer
30 views

Show the SubFolders in DIV using Sharepoint REST API

I have this code bellow: jQuery.ajax({ url: "https://test.sharepoint.com/sites/test/Negocio/_api/web/Folders('Historico')/Folders", method: "GET", ...
1
vote
2answers
988 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.
6
votes
2answers
2k 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 ...
3
votes
1answer
31 views

SP .trim() and jQuery.trim() are fighting

I'm using a jQuery plugin Datatables to create my own views of information retrieved from a list and it is mostly working. Datatables is built on top of jQuery and relies on a lot of its features. ...
3
votes
0answers
25 views

Sharepoint Online REST: retrieving ServerRelativeUrl of deleted file?

After using getChanges to get deleted files/folders, is there a way to get the deleted file's original ServerRelativeUrl (path) even if the file is not in the recycle bin (ex: it was directly deleted ...
0
votes
1answer
998 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
1answer
993 views

REST Service API executor.executeAsync Call Ends in Failure Function in Sharepoint Hosted App

Any Answers Will Help me to Forward and Gain Knowledge in SharePoint Development While i am Trying to get the list Items Using Rest API Calls in SharePoint Hosted App Using Below Function function ...
0
votes
1answer
26 views

I would like to know how to display the data on the website after being fetched via ajax

$.ajax({ url: "http://bc-net/Sandbox/juandev/_api/web/lists/GetByTitle('Qlinks')/items", method: "GET", headers: { "Accept": "application/json; odata=...
0
votes
1answer
40 views

SharePoint API and VBA - Access Denied

I'm trying to retrieve items from a SharePoint list using the SharePoint Web API. I'm coding in VBA, because a need to display the information in a Word document. However I'm getting the Access Denied ...
1
vote
3answers
991 views

Join data from two lists using SharePoint REST API

I have two lists which will be used to keep a log of changes in some data: ChangeLog: Title Event Created By Other stuff ChangeLogDetails: Id of related record in the ChangeLog list What was ...
1
vote
1answer
1k views

Check a property is not null in search rest api

I write this query for search user in a site. /_api/search/query?querytext='*'&sourceid='b09a7990-05ea-4af9-81ef-edfab16c4e31' I want to add a filter that the result must contains WorkEmail. I ...
2
votes
2answers
1k views

JSon REST API. Retrieving items in lists. Workflows

Using this: http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=224 I was able to make a workflow that loops through lists. Now I understand adding ?$top=5000 at the end of my URL I can pull more ...
0
votes
1answer
1k views

How do I send data to a lookup field with ReST? SP2013

I've been working with a jQuery AJAX call to post data to one of my SharePoint lists. One of the fields in this list is a look-up field. In forming my JSON data to push to the list I was able to ...
0
votes
1answer
1k 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 ...
0
votes
3answers
1k views

How to encode spaces in sharepoint 2013 search rest api url?

In a sharepoint 2013 search rest url, I have multiple columns to filter on, but some of the values have spaces, but it seems spaces are used to delimit the filters. How can I encode spaces? See this ...
4
votes
1answer
1k views

Field value is null in SharePoint search REST API result

I have simple search REST GET query as below : https://<site url>/_api/search/query?querytext='research'&selectproperties='Title,Author,Created,ContentTypeId' The search result XML ...
1
vote
2answers
317 views

How do I get results to open in new tab?

I've made several edits to this line, but they do not appear to be working. html = html + "< a href='" + this.LinkingUrl + target="_blank"+"'>" + this.Name $.ajax({ url: "https://gumdropsgc....
0
votes
1answer
1k views

Set value to ClientPeoplePicker

I need to set value into a ClientPeoplePicker, my list save the user as a SPUserField, I already get the id from the list. Thanks and greetings
0
votes
1answer
1k views

Cannot delete attachment from a list item from a sharepoint online app

I get a success message after running the following code displayed below. However, when I go and verify the list item the file is still there. If I try the client side of this code, the file gets ...
5
votes
4answers
181 views

Filter Created in SP REST API

I have this code below: jQuery.ajax({ url: res3 + "/_api/web/lists('" + normlistid + "')/items('" + normid +"')?$select=ID,Title,Created,QuemLeu/Id&$expand=QuemLeu", method: ...
0
votes
1answer
18 views

How to create a Custom List in Sharepoint 2013 from a Template using SPServices REST API

I have made two custom list templates for 2013 and I want to create lists using those templates Dynamically. Something like using a page in which I choose the name and description of the custom list ...
0
votes
0answers
17 views

Create Page .aspx in a list using SP REST API [duplicate]

I've this code below: var fields = { "__metadata": { 'type': "SP.Data.PagesItem"}, "Title": "test" } jQuery.ajax({ url: "https://.../sites/intranet/jobs/_api/web/lists/GetByTitle('Pages')/...
4
votes
0answers
57 views

Get SubFolders using Sharepoint REST API and show them in HTML DIV

I want to retrieve Subfolders using SP REST API and check if there is any created folder and If it exists, display HTML content like: <label>SubFolder Title</label> for each SubFolder. All ...
0
votes
3answers
1k views

Some fields Undefined when display results from REST query

I am learning to build custom SP solution with JS and HTML following the Apress book of same name. I use the following script (in Code Snippet of a SEWP): <script type="text/javascript"> $(...
0
votes
2answers
1k views

Rename folder with SharePoint online REST API 2013

I want to rename folder via SharePoint Online REST API from CRM Plugin. Below is my code. I am getting HTTP 204 response, but the folder name is not changed. Please can someone tell what is wrong ...
0
votes
2answers
2k views

Sharepoint 2013: simple api call not working

[site name]_api/web/lists/GetByTitle(‘ListName’)/items So why does this not work? All the examples I see indicate that it should work. <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/...
0
votes
0answers
22 views

FirstName and LastName are not available for expanding in SharePoint rest api

I used rest api to get FirstName and LastName of a user field. The code hasn't been updated for a long time now and it was working fine until last month, but now it doesn't seem to work Here is the ...
0
votes
1answer
1k views

Fetch User Details from Person Or Group Field Using REST API

I was trying to retrieve user WorkPhone from a people and group field but its throwing error saying The query to field 'Application/WorkPhone' is not valid. But I tried the same query for the ...
1
vote
1answer
44 views

Can't retrieve all Items from all lists that reside on a single subsite

SP Community, I am absolutely stumped and desperate for help. I have been up and down StackExchange trying to get 3 separate attempts to - 1. query all of the lists within a subsite and to then - 2. ...
0
votes
1answer
1k views

Rest API authentication

I need to use the SharePoint Rest API from a custom JavaScript application (outside from SharePoint). How can I authenticate the user to use the Rest API. I can not deploy a SharePoint app, I need ...
3
votes
2answers
12k views

How to get 'form digest value' to use in REST call?

I am trying to delete a web by calling the REST service from a SharePoint 2013 workflow. The MSDN reference here tells the syntax is like below: $.ajax({ url: "http://<site url>/_api/web", ...
1
vote
2answers
2k views

HTTP 403 Error when using REST to update Lists

I'm having a problems using REST to POST to a SharePoint List named Employees. I can get my code to GET data from the list, but when I try to POST data to the list it does not work. It gives me an ...
12
votes
1answer
2k views

Getting data from SharePoint Online with an App, service to service

I have registered an App in my SharePoint Online, and I can use it's ID and secret with the Office Dev PnP PowerShell library. Works like a charm. Now the issue is that we are trying to connect to the ...