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.

16
votes
0answers
182 views

Replacing SOD with fetch (handling JS library dependencies - *in the future*)

Anticipating a future, I am experimenting with User Custom Actions in the new Document Library View Microsoft has so kindly provided to the First Release Office365 tenants. Since there is almost ...
6
votes
0answers
473 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 ...
5
votes
0answers
70 views

sharedWithUsersId not returning up to date user ids

I don't understand the response for the API call: /_api/web/getFileByServerRelativeURL('/docs/Test.docx')/ListItemAllFields/SharedWithUsersId I upload a Test.docx document and share it with two ...
5
votes
0answers
224 views

SPOnline, How to Batch RELATED REST calls (and increase performance)

Doing nothing fancy, just your normal Intranet Front-Page Got two WebComponents that display a News Carousel and Summary List <news extract="newsheadlines" display="carousel"> <news ...
5
votes
0answers
749 views

Unable to update taxonomy field value using REST API or JSOM

I'm not able to modify taxonomy field values with REST API or JSOM for a specific library. My code works on other lists, but not on this particular library, what can the problem be? The library has > ...
5
votes
0answers
180 views

Empty result set with Folders SharePoint Online REST api with throttling

I am using the folders REST api with SharePoint Online to return subfolders for a folder: /_api/web/GetFolderByServerRelativeUrl('folderServerRelativeUrl')/folders. This works great until the number ...
5
votes
0answers
947 views

sharepoint workflow rest api add role assignment exception

I develop a workflow and i want to grant unique permission on item in list using sharepoint rest api http://sp_site/_api/web/lists/getByTitle('Test')/items(1)/breakroleinheritance(copyRoleAssignments=...
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 ...
4
votes
0answers
215 views

What are _spPageContextInfo.fid and _spPageContextInfo.nid in SharePoint 365?

I am getting values as shown below while executing _spPageContextInfo.fid and _spPageContextInfo.nid in the console in my SharePont 365 site but am not getting for what these values are used here. ...
4
votes
0answers
140 views

Is it possible to create a site in a different Farm via SharePoint Designer Workflow

UPDATE: It looks a little bit like a cross domain limitation. I was able to successfully complete a site creation within farm the WF is executed on via REST, but as soon as I attempt to hit another ...
4
votes
0answers
433 views

Using REST API in SharePoint forms in Office 365 using SharePoint Designer

Can someone direct me to some basic tutorial or component that would allow me to consume a REST API from SharePoint forms in Office 365. I would prefer to do all the customization using SharePoint ...
4
votes
0answers
2k 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 ...
4
votes
0answers
539 views

Querying 'Append Changed to Existing Text' from client script?

Is there a way, preferably via REST but JSOM would work, to query a SharePoint 2010 field to get all entries when 'Append Changes to Existing Text' on a multiple lines of text field is enabled?
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 ...
3
votes
0answers
381 views

Using Rest API call to get list item in SharePoint 2010 workflow

I am trying to get list item using REST API syntax in SP Designer workflow. The url format is as follows: https://example.com/_api/web/lists/GetByTitle('List%20Name')/items(2952)?$select=...
3
votes
0answers
374 views

Working with Discussions/Replies using REST update DiscussionLastUpdated

I'm following this thread which shows how to create a reply to a discussion using REST api. Basically -- created the reply at top level of list, get the reply parent folder, get the FileRef info about ...
3
votes
0answers
37 views

GetGroupsForUser - Only returns groups when I send a claims string 0#.W. Why is that?

I'm playing around with SharePoint 2013 soap api - particularly the GetGroupsForUser on my company's sharepoint instance. It seems that it only returns groups when I send a claims string i:0#.w| + ...
3
votes
0answers
562 views

How to enable cors on a different site collection?

I want to make a rest call to get web properties (i.e. /_api/web), for a different web application than the current. I have added the response headers Access-Control-Allow-Credentials : true Access-...
3
votes
0answers
423 views

Post Infopath Form remotely using REST SharePoint 2013

I am a C#/DBA/Web developer using VS 2015 and new to Infopath/SharePoint so no bashing please. Got thrown into this project and have been banging head against wall for week trying to resolve this. ...
3
votes
0answers
233 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
0answers
672 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 + "+...
3
votes
0answers
363 views

download partial by using GetFileById sharepoint REST-API

I want to download only a part of a file using the 'GetFileById' SharePoint REST api but I don't not see any references in the documentation about support for partial file download. I tried using ...
3
votes
0answers
118 views

Get REST RequestDigest on new (First Release) Library View page

There is hardly anything left in the new (First Release) Document Library View, No SP Object, NO JSOM and no more DOM element with the FormDigest we need to do REST, so all code with: document....
3
votes
0answers
39 views

Reaching subsites of SharePoint domain

I am writing an application that scrapes all the files from a given SharePoint site and all of its sub-sites. This worked perfectly when I ran it locally however, now that it's running on a server ...
3
votes
0answers
123 views

How to minimize data returned from SharePoint 2013 REST search api?

In sp2013 rest, you can get json returned. But also depending on the header type, you can specify a no metadata option to get less data as shown here. http://www.vrdmn.com/2014/06/improving-rest-api-...
3
votes
0answers
320 views

Update metadata w/2013 REST API in a Workflow

I am looking for an example of a REST PUT/MERGE method done from a workflow (no code) in SharePoint Designer to update a metadata field in a library. Specifically what the Build Dictionary and Call ...
3
votes
0answers
569 views

Sharepoint Authentication via REST API

I would like to connect to Sharepoint via REST API and Javascript. Based on readings I've done, first you need to have Security Token, then you use this Security Token to get FedAuth cookies, ...
3
votes
0answers
2k views

REST api 500 (Internal Server Error) error for following a site

Im currently using this code to follow a site : var executor = new SP.RequestExecutor(shptService.appWebUrl); var siteUrl = "https://domain.com/site1"; executor.executeAsync({...
3
votes
0answers
2k views

How to get the Search REST API sort to not be case sensitive?

I am using the Search REST API to get a list of users, and am trying to sort the results by last name. However, the sort seems to be case sensitive. Is there a way to change the way items are sorted? ...
3
votes
0answers
284 views

How to dynamically change the drawing path in Visio Web Access Web Part

I am wondering if there's any way to dynamically change the drawing shown by a visio web access web part. I have multiple drawings I want to show on a page based on what users click on the page. Any ...
3
votes
0answers
4k views

Set value in web property bag using REST API

I am trying to manage web properties from property bag using REST API. It is pretty straightforward how to get the values var url = "https://site.sharepoint.com/_api/web/allProperties"; $.ajax({ ...
3
votes
0answers
861 views

Updating multi-value fields using REST API

I searched previous posts and the closest to my question is: Updating Lookup Values with the REST API however I am using the cross-domain library and my update query uses ValidateUpdateListItem method....
3
votes
0answers
722 views

Workflow getting Access denied when calling the rest web service call

I have followed the MSDN article to give app permission to the Workflow and added the app step in the Workflow with elevated privilege. Under this step, made a web service call to {web url}/_api/SP....
3
votes
0answers
284 views

GetUserEffectivePermissionInfo for the 2013 Rest API

Does anyone know if there is a client-side (preferably REST) equivalent to SPSecurableObject.GetUserEffectivePermissionInfo(username)??
2
votes
0answers
442 views

Access-Control-Allow-Origin' not allowed access SharePoint Ajax call cross domain

I am trying to access cross domain service using ajax call in sharepoint. getting below error Failed to "Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-...
2
votes
0answers
450 views

is on-premise Sharepoint 2016 REST API possible with oauth?

I have a Sharepoint 2016 server and a python web server. I would like to read data from Sharepoint with my python server. I was able to do this on Office 365 on the cloud but did not find much ...
2
votes
0answers
40 views

Is the ProjectServer REST service really that much slower than the ProjectData service?

I have a couple REST queries that are pretty much identical, asking for Tasks who's Finish date falls between two specified dates: axios.get(_spPageContextInfo.siteAbsoluteUrl + "/_api/ProjectData/...
2
votes
0answers
239 views

Sharepoint CheckOut method REST API using C#

I try to create a C# program which opens a document in checkout mode. How can I use REST API checkout method on C#. Secondly I will add checkout operation windows context menu, user can open ...
2
votes
0answers
249 views

Get PublishingPageContent rendered when using Rest Api

I am trying to implement client-side navigation within a sharepoint site, this means, allowing the user to navigate thru the different pages without reloading the browser. I can dynamically load the ...
2
votes
0answers
76 views

Retrieve Subtitle/Caption information from REST API for Video 365 Videos in SharePoint Online

I'm looking to use the REST API to pull additional metadata like subtitle or caption track info. I have videos with the .VTT tracks loaded in the Video 365 module and can access those subtitles when ...
2
votes
0answers
79 views

Extract star rating details without code

I have enabled Star Rating for my list. Suppose 100 people have rated the list item, How can I export which rating was given by which user? Need to export this data to excel without code through ...
2
votes
0answers
32 views

Unable to get all worksheets ranges with REST API

Maybe I am doing something wrong or I didn't get the way to get my data. I tried to call: curl -k --ntlm --user user:pwd https://sharepoint.server/dept/_vti_bin/ExcelRest.aspx/Department/mydoc/...
2
votes
0answers
32 views

Sharepoint 2013 BreakInheritance Breaks List

I am developing a dynamic approval workflow for a list library. I use a combination of 2013 and 2010 workflows in a 2013 on-premise environment. The workflow has some requirements that I am trying to ...
2
votes
0answers
319 views

Performance issues when using Jquery Datatable in Sharepoint

I am currently using Jquery Datatable in Sharepoint, where I am not using ajax in datatable as I am fetching data from multiple tables and after doing than I am joining the list and converting it to ...
2
votes
0answers
40 views

Create Items in the other list on create of list item and same for CRUD operations with SharePoint Online/Office 365

I've two site collections A & B. Collection A & B contains custom lists ListA & ListB with the same column name(Both the lists are identical) I have to create items in the ListA & ...
2
votes
0answers
310 views

How to get Access token cookies of on-premise Sharepoint using REST API?

I want to access sharepoint on-premise list. But i dont know how to get Access token of it. I am trying to make application in android. any help will highly appreciated.
2
votes
0answers
31 views

Is it possible to POST to a list that requires OAuth, through just js?

I'm (very) new to SharePoint, and have been tasked with creating what was described as a "lightweight Angular form" to submit items to a list. The form is supposed to be embedded into a page, so it's ...
2
votes
0answers
1k views

SharePoint 2013 REST API, http header using C#

Now I have tried to retrieve data from a SharePoint 2013 list, but despite a lot of evidence, there is nothing that really works well. My question is very simple! How do I write a header that works ...
2
votes
0answers
317 views

How to filter on publishing start/end date in sharepoint 2013 REST api?

I have a rest query here: http://mydev/en/_api/web/lists/GetByTitle('Page Images')/items?$select=ImageLink,EncodedAbsUrl,PublishingStartDate,PublishingExpirationDate&$filter=PublishingStartDate ...
2
votes
0answers
2k views

getting XMLHttpRequest cannot load (URL) Response for preflight is invalid (redirect)

here am trying to get reccurring events from calendar list for sharepoint Online app and there am using code as like hostWebUrl = decodeURIComponent(manageQueryStringParameter('SPHostUrl')); ...