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
2answers
21 views

Column permission to edit the data for a specific SharePoint group

We have one list in SharePoint Online in which there are certain records. There is one column whose data should be visible to all users,but should not be edited by all the users, it should be enabled ...
0
votes
2answers
20 views

How to get version history of item using REST

Very new to SharePoint so I am sure this is a newbie question... I did look at the forums. Here is the command I am using: https://Server/Site/_api/lists/getbytitle('Equipment%20and%20Inventory')/...
0
votes
1answer
19 views

Sharepoint Online REST: Lists' Enable audience targeting setting

Is it possible to get and/or set the List Settings > Audience targeting settings > Enable audience targeting on or off with the Sharepoint REST API? I've tried checking the GET <web-url>/...
2
votes
1answer
28 views

SharePoint 2013 rest API get the average of calculated column

I have a calculated column for ticket response time Want to get the average response time for all tickets average response time = (sum of #response time)/ #of tickets call: https://siteurl/_api/web/...
0
votes
1answer
24 views

REST API filter by a “BusinessData” field

I have a query that brings the contents of a list based on a query like this: https://myserver.com/LibraryABC/_api/lists/getbytitle('MyList')/items?$select=*,FileLeafRef&$filter=(MyField eq '...
0
votes
1answer
20 views

Search/REST API only showing all results to Farm admin

I want to retrieve all the library items of a content type "Prod Request". I am using REST API. Here is my query: $.ajax({ url: https://mysite.domain.com/_api/search/query?...
0
votes
0answers
29 views

Starting SharePoint 2013 workflow using REST from another workflow fails the first time but works on retry

I have two SP 2013 workflows. One (WF1) does a number of things, but at the end of WF1, I'm calling another SP 2013 workflow (WF2) using REST. WF1 runs both on create and change and conditionally ...
1
vote
1answer
18 views

How to get all checked out files and when they were checked out

Trying to figure out a way to use REST or JSOM to find all checkedout files in a library. I can use a list view to show which files are checked out and by whom, but there is no way to see how long ago ...
1
vote
0answers
17 views

SharePoint form digest response 404 using java REST api

I am Using apache Http Client for connecting sharepoint using rest api. code snippet is as below: HttpClient client = HttpClientBuilder.create().build(); String baseurl = messages.getString("baseurl"...
2
votes
1answer
43 views

Update Excel/CSV file from List

I have a requirement in which suppose if someone adds an item in List, item details should be automatically updated to Excel/Csv file which has same column names as list. This Excel/csv file can be ...
1
vote
0answers
53 views

How to use external API in sharepoint online or in SPFX?

I am trying to integrate the Microsoft Translator Text API to a SharePoint online site, and the method that I am using is with sharepoint framework webpart. but when I press the button to do the API ...
1
vote
0answers
21 views

How to extract metadata including whole file content in sharepoint REST api

Now, I want to extract file content using sharepoint REST api. My goal is: extract file metadata and entire file content (just pure content, no structures). After searching online, I notice I can use ...
0
votes
1answer
24 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 ...
1
vote
2answers
45 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 ...
0
votes
0answers
45 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
2answers
26 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')/...
1
vote
0answers
25 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 ...
0
votes
2answers
19 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?$...
1
vote
1answer
31 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", ...
3
votes
0answers
32 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
27 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=...
3
votes
1answer
33 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. ...
6
votes
4answers
214 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
21 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
63 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
0answers
23 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
62 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
1answer
49 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. ...
1
vote
2answers
45 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
0answers
61 views

Site collection through REST API on SP 2019

Can we create site collection through REST API on SP 2019 on-premise environment?
0
votes
1answer
32 views

Sharepoint Rest API Error 403

i have a sharepoint farm with two different web applications. When i'm trying to access the second web application with java script from a page of the first web application, i always get an http error ...
1
vote
1answer
38 views

SharePoint server REST: Find folder by attribute

I am developing an integration between several systems and in one point I have to find the files inside a folder using the SharePoint REST API. The data I have to look for the folder is the List were ...
0
votes
2answers
27 views

REST API: I want to display all items with a certain value first, even though they are not in order alphabetically (asc and desc won't work)

I'm essentially wanting to implement a custom sort order. I have a list of items with a 'Status' choice column. The status choices are 'New Item', 'Funded', and 'Pending'. In my query, I'd like to ...
0
votes
3answers
25 views

What is the proper REST call to get m:properties --> d:Id, d:ID but not the GUID ID XML elements?

Please see attached JPEG to demonstrate what I'm asking. Thanks
3
votes
1answer
37 views

How can I check if an ID belongs to a user or a group?

I've got a SharePoint list with a field where authorized users and/or groups are listed. I know I can use CanCurrentUserViewMembership to check if the user belongs to a specific group, but if the ID I ...
0
votes
0answers
14 views

Create a reference thread using Social Feed REST API (e.g. rating notifiation)

We are using SharePoint Social Feed as a social component in our company network, but without using the SharePoint UI. All things are done in a modern React based webapp using the REST API. In the ...
1
vote
2answers
46 views

Sharepoint Online REST: field property names in Item response JSON

Is there an exhaustive document of how (possibly user-added) field values are returned in the Sharepoint REST ListItem GET endpoint's response? Afaik, most field values are returned by its ...
1
vote
2answers
96 views

SharePoint Online Create Site Collection using REST api?

Is it possible to create a site collection using the SharePoint Online REST api? I found some old notes about using admin.asmx in 2007/2010/2013 but I can't find anything related to SharePoint online ...
1
vote
1answer
33 views

Getting objects with today's date in Rest API

I need to fetch task objects which are completing today using Rest API , Can anyone please suggest how can we use today option to filer the data? I am using below query: /api/Objects/Task?$filter=...
1
vote
1answer
40 views

Attach File to Document Set via REST

Is there a way to upload files using Sharepoint REST API to my created Document Set? Document Set: Inside "Test" woud be: I can upload files via browser but how do I do it via REST?
3
votes
1answer
47 views

How to get a list's new Name after changing it with the REST API on SPO?

On SPO, after changing a list's Name in 'List Settings' > 'List name, description and navigation', the list's Name in the SPO webpages gets immediately updated, but the GET /_api/Web/Lists(guid'my-...
1
vote
2answers
48 views

SharePoint Online Rest: Lookup Values visible in list, ID column does not reveal the Ids of the item

I have an odd issue today. When looking at a list I can see the lookup field is populated with an item, this is one of a few lookup fields on the list. However when I look at the results of a rest ...
2
votes
1answer
47 views

SharePoint 2013 REST API filters

As part of our requirement, i created one BCS connection which retrieves data from a SQL stored procedure which acceppts two input paramaters. I was able to create a external list out of it. But when ...
3
votes
2answers
94 views

PnPJS - Check if site collection exists

With PnPJS, is there a way to check if a site collection exists given several URL? Something like this: import {Site} from '@pnp/sp'; const sitesToCheck = [ 'myspsite.net/sites/sc1' // exists '...
1
vote
1answer
40 views

Error reading syndication item: 'Data at the root level is invalid. Line 1, position 1.'

First time playing in this environment: Sharepoint 2010. I have access to very limited tools: browser, notepad and the Internets. Feeling a bit rusty, haven't programmed in a while and I'm having a ...
1
vote
1answer
79 views

I need to return the number of views a document was viewed?

I saw about the ViewsLifeTime and ViewsRecent properties. The two return empty. How do I work?
1
vote
1answer
107 views

Upload file to SharePoint online with HTTP REST calls

According to the following link: Working with folders and files with REST I can add a file using url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files/add(url='a.txt',...
2
votes
1answer
65 views

Sharepoint 2013 rest api group subtask with respective main task?

Want to display Task and sub-task using the rest api jquery. My query string displays task and sub-task as individual unrelated task.
1
vote
1answer
71 views

AJAX REST call to POST to SharePoint list generates error

I am having difficulties with the JQuery implementation of AJAX to make REST calls to POST data to add items to my SharePoint list. Using 'GET' to retrieve information gives me no issues. Given the ...