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 [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
2answers
23 views

REST API filter/select

I have a list in SP 2013 with 4 Columns Date Created -- Country -- Price in US Dollars -- Modified After a bunch of help from the community I have created a Rest API for this list, but now i'm ...
2
votes
1answer
2k views

Grouping SharePoint REST API results

I am building a customized events feed via REST query. I have a feed of all events in the calendar, filtered on date range and sorted, but I'd like to take it a step further and group the results by ...
21
votes
3answers
13k views

SharePoint 2013 REST expand and filter issue

I've been using REST for a lot of tasks, and with the recently added $batch endpoint, it's more fun than ever. There is one thing bugging me though, and I'd like to share it with you, perhaps someone ...
3
votes
2answers
17 views

SharePoint Online getFileByServerRelativeUrl with Editor not working

I am trying to get the 'Editor/Name' using REST however this does not appear to be working. My current REST url is formed as follows: https://tenant.sharepoint.com/sites/sitecollection/_api/web/...
0
votes
1answer
14 views

Successful API build, but now what [on hold]

So I am pretty much self taught on SharePoint and have just recently built a Rest API off one of my lists. Now say I wanted to ingest that API into a program like power BI? is that possible? I guess ...
4
votes
3answers
7k views

REST API page validation error for SharePoint app

I need to do insert operation to SharePoint list. Below is my code.. $.ajax({ url: appWebUrl + "/_api/SP.AppContextSite(@target)" + "/web/lists/getbytitle('NewList')/items?" + "@target='" + ...
2
votes
1answer
2k views

How to create list item in an external list using SharePoint workflow?

Environment: SharePoint 2013 SP1 I have an External List displaying data exposed through a WCF service. Creating, Reading, Updating and Deleting (CRUD) items in the external list works fine in the ...
6
votes
1answer
594 views

REST API External user access

I'm currently trying to access a sharepoint site through the REST api using an external user from another organization. The user has been added to the Site Members group with the Edit rights ...
0
votes
2answers
30 views

SharePoint Custom Webpage/Part Not Consistently Loading

I hope this is the right place I have been in a role within my organization working with SharePoint for a couple of months now, so i'm a newb more or less. I have some experience (again a novice) ...
2
votes
1answer
2k views

Java Authentication with Office 365 Sharepoint

I have an application that I tested out with a self-created SharepointServer based on an Active Directory environment. For this I used the following code to authenticate with the Sharepoint server(...
12
votes
3answers
16k 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 ...
3
votes
2answers
2k 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
1k views

SharePoint designer REST call to populate lookup field in SharePoint 2013 list

I'm trying to update a multi-value lookup field in a SharePoint 2013 list from a SharePoint designer workflow using the 'Call HTTP Web Service' action. Here's how the field looks when querying a list ...
1
vote
3answers
4k views

Get only future events from calendar list in SharePoint 2013 Rest API

I'm using SharePoint's rest api to get the coming events in a calendar, with the following query: /_api/Web/Lists/GetByTitle('Agenda')/Items?$top=3 How can I change this query to get only events for ...
0
votes
0answers
15 views

Loading _Sys_Nav_HoverText with REST

I'm building a SharePoint 2016 app with a custom site map menu that utilizes the site's managed navigation. How do I retrieve the "Navigation Hover Text" value? I'm using the REST API to retrieve the ...
4
votes
2answers
2k views

Request data from O365 Sharepoint Project online with oData

I'm trying to get data out of a O365 Sharepoint Project Online (PWA) enviroment. When I login to the O365/Sharepoint environment and navigate in the browser to: https://my.sharepoint.com/sites/pwa/...
8
votes
1answer
2k views

How to call the Sharepoint REST API from an external website(IFrame)

I've been trying to do a simple GET REST call from an external website (Dynamics CRM) to a SharePoint Online site. All I want is to list the files from that SharePoint Online folder into an IFrame on ...
0
votes
2answers
19 views

SharePoint 2013 Rest API (targeting specific columns)

Very new to SharePoint Rest API's, I got the rest to work filtering the first Column but now I am running into issues with showing the multiple columns for example. I am trying to filter out the ...
5
votes
2answers
3k 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
21 views

Correctly getting a Wiki Page's content with REST API

According to a reply in this post, I can get a Wiki page's content by extracting the WikiField field from the response of GET https://<site-url>/_api/Lists(guid'<list-id>')/Items(<item-...
0
votes
1answer
1k views

How to filll dropdown value using REST API

I have tried following code: $(document).ready(function(){ ExecuteOrDelayUntilScriptLoaded(GetEmpName, "sp.js"); }); function GetEmpName() { var strUser = "Developer"; var soapEnv = ...
1
vote
1answer
2k views

Problem with workflow REST

I seem to be having a problem making a rest call to create a list or add a user to a SharePoint group. Both give me the same error - Response: {"error":{"code":"-1, Microsoft.SharePoint.Client....
0
votes
0answers
14 views

Fetching employee details from master list based on employee name selection

i have a small requirement which can be fulfilled by REST but i am not that good in REST. so i have List A (Master List) and List B (Vacation Form). List A contains Employee name , Managers Name , ...
0
votes
1answer
18 views

Azure Sharepoint Application API Key generation

Introduction I'm not a Sharepoint developer. I'm attempting to build an API from a php application to talk to the file storage within a Sharepoint site. From what I can The RESTful API makes the most ...
0
votes
2answers
34 views

Access all files in different folders using REST API

I have four folders, is it possible to access them and get all the files? I already tried this: jQuery.ajax({ url: "https://test.sharepoint.com/sites/test/Negocio/Precario/_api/Web/...
4
votes
2answers
2k views

REST Api Filtered odata returning error: list view threshold

Why does the first query runs ok and the second throws list view threshold error? Note that it's a regular SP.ListTemplateType.tasksWithTimelineAndHierarchy List with Id and PercentComplete as ...
1
vote
1answer
869 views

REST search api working with the results

Working with this documentation and jQuery ajax to use the search features of the REST api. I'm making progress and it is starting to make some sense. I'm trying to figure out how to work with the ...
2
votes
3answers
2k views

The required version of WcfDataServices is missing

I try to add a list item via the SharePoint 2013 REST API (in Objective C) and keep getting the following error: { "error":{ "code":"-1, System.InvalidOperationException", "message":{ "lang":"en-US", ...
6
votes
3answers
7k views

Consume SharePoint online lists using REST API (in R)

I would like to be able to query lists that are on my sharepoint online site via R. I'm having difficulties ascertaining the right method for authenticating my requests. These requests would be ...
0
votes
1answer
594 views

Lync Presence Image not matching in IE

I am trying to create a custom Lync presence indicators. They work perfectly in Chrome & Firefox but IE is causing problems. Chrome IE I have a couple of errors on the page but none that seem ...
1
vote
1answer
710 views

Pre Filling SharePoint Field using Javascript

I am using REST API to create a list item in another list. Based on the successful creation of the list item I am just updating the current SharePoint field value. This whole process is executing ...
0
votes
0answers
21 views

Microsoft Graph/Sharepoint API search

The Graph API isn't well documented about a few things, and so I was wondering if anyone had some insight, or direct answers to the following problem: Background I am attempting to create a RESTful ...
3
votes
2answers
799 views

Reserved folder names sharepoint online

I'm currently running into an issue with creating a folder titled "large_files" When using the Web UI in OneDrive for Business I've created the following folder /personal/...
0
votes
0answers
8 views

How to save to a richtext column using TinyMCE

I'm trying to make a custom form using js and TinyMCE, and the problem I have is that all of the rich text is saved, except the images, when I check the list, the html is saved like this <img alt=...
1
vote
1answer
607 views

What permissions do I need to get RoleAssignments via the rest api?

I am trying to get the ACL on a file via the rest api. I can get the contents of a file and make other rest calls but when I call: https://foo.sharepoint.com/_api/Web/Lists(guid'...')/Items(...)/...
2
votes
1answer
624 views

Sharepoint 2013 REST API with user without admin rights

I'm developing a web application which integrate with the sharepoint (multi-tenant). The app is supposed to upload and download files to the sharepoint. I'm using the Sharepoint 2013 REST and trying ...
1
vote
1answer
447 views

Navigation Rest api

I have a structural navigation on a site collection on sharepoint online, I want to create a custom navigation control using rest api that show 2 level, so I made a query : _spPageContextInfo....
0
votes
1answer
23 views

Can I use elevated permissions using JSOM, CSOM, or REST?

I am working with an On-Premise SharePoint 2016 farm and I am looking for some way to elevate permissions, so I don't use the logged-in user's credentials but another set of permissions that the ...
1
vote
1answer
620 views

Rest query to get all checked out file recursively

I want to get all files under document library which is checked out. I tried this rest query in SharePoint hosted app window.location.protocol + "//" + window.location.host + _spPageContextInfo....
0
votes
1answer
52 views

403 FORBIDDEN error while trying to insert an item in a SharePoint list

Hi I am trying to insert a list item in a SharePoint list by using REST api. I am getting an error as: { "readyState": 4, "responseText": "{\"error\":{\"code\":\"-2130575251, Microsoft....
1
vote
1answer
606 views

rest api examples other than crud operations on lists

I have tried learning rest using the basic examples.But I could not get any other rest example samples other than the CRUD operations on lists. Can anyone provide me the suggestions where i can get ...
0
votes
2answers
3k views

REST Calls to SharePoint Online from Excel VBA Only Work for Some Users

I've got a couple of hundred automations written in Excel that update a SharePoint list every time they're run. A small group of us can run the code and the list will update fine, but most users get ...
0
votes
1answer
605 views

Sharepoint 2013 App | Redirect at 404 error

I have a Sharepoint 2013 App (Sharepoint hosted). It is a Single Page Application made with AngularJs (ngRouting) and is RESTful. So url looks like following: appname/viewOrders appname/ordersAmount ...
2
votes
2answers
994 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: ...
1
vote
2answers
816 views

How to find the item ID of a list in SharePoint using REST?

At some point in time, I want to update a specific Item in a list. I Know that I have to use the REST call to update a specific item. Below is my URL. http://cloudapps.cctspl.com/sites/...
13
votes
2answers
3k 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 ...
5
votes
1answer
2k 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: /_api/web/...
6
votes
7answers
20k 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
2answers
34 views

Get value from Column and cut the duplicates using SharePoint Rest API

I've multiple folders inside the pages library Within each folder I have pages Grupo de produtos is of type taxonomy. I run the function GetPagesProd and for each item I get the value from Grupo de ...
3
votes
2answers
2k views

How is ViewsRecent in search results calculated?

I need to find the top 3 visited webs for the last 4 weeks and I need/want to do it via the REST search api. This is SharePoint 2013. The value ViewsRecent returned by a search query seems to be what ...