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

0
votes
1answer
30 views

How to use SharePoint REST API to get newest list item?

I am trying to get the newest item added to a list. Get item by ID works for single item: $.ajax({ url: xurl + "/_api/web/lists('" + xlist + "')/items/getById(123)", type: "GET", headers: { "Accept"...
2
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
0answers
22 views

Getting Sharepoint site users: e-mails and role

I would like to get a list of users/groups that have access to a Sharepoint site. In addition to the list of users and respective e-mails, I'd like to know what level of access the user has to the ...
0
votes
0answers
9 views

API items endpoint filter for <d:Url> field

We are trying to use the API in order to look @ the element below and search for anything in this particular library that starts with http://. This is the link you get when using the Document ID or "...
0
votes
2answers
32 views

SharePoint POST REST API returning error code 400

I'm attempting to create an item in SharePoint on premise 2016 list using Java and SharePoint API. Forgive me if I missed it - I see a few related questions but they do not seem to really answer my ...
0
votes
1answer
3k views

C# REST Add File to SharePoint Library

I'm trying to upload a file to SharePoint 2016 On-Prem via the REST API, I'm currently getting 403 Forbidden Response. SharePoint is sat behind ADFS, I'm successfully authenticating, and I'm sending ...
0
votes
1answer
33 views

How to get the contents of the documents in Sharepoint 2010

I need to get the contents of the documents (.doc/.pdf) using rest api (Postman tool) which belongs to a sharepoint site. How to get the document contents?
1
vote
0answers
10 views

List update and file upload using REST API failed with a SPListDataValidationException

I use the REST API to create list item, upload file linked to this item and update the item. For some list everything works fine and I can realize all these operations but for some other lists on the ...
0
votes
1answer
18 views

How to SP2013 list put it into DataTable dynamically?

I have a sharepoint 2013 list with some items, I need to put it into DataTable dynamically, is possible create the html table automatically?
0
votes
1answer
37 views

Resolution for SharePoint: Uncaught TypeError: Cannot read property of undefined?

Successfully grabbing values for person columns with multiple selections allowed. Looking at the call in the browser I see the info I need: function dChange() { $.ajax({ url: xurl + "/_api/web/...
1
vote
1answer
18 views

List all files and their path for 500+ subsites?

I have a collection in our SPO setup which contains 500+ subsites. Each subsite contains between 10 and 20 libraries. I have been tasked to get data on which folders in which library is empty. I've ...
0
votes
2answers
27 views

Mulitiline of text column not used to filter particular word from list using rest API filter query in sharepoint online

I want to search the value in one particular column of the list using RestAPI. _api/web/lists/getbytitle('FAQ')/items?$filter=contains('" + Searchtext + "',Answers) And tried this, _api/web/lists/...
0
votes
2answers
25 views

How to add an attachment to a list using REST API?

Searching for how to use javascript or jquery to add an attachment to a list item? Been having a hard time with this. Any good tutorials or articles?
1
vote
0answers
18 views

In Sharepoint online, Multiline line of text column filter using RestAPI

I tried to search the value in one particular column of the list using RestAPI. (Sharepoint Online). I couldn't able to filter the list because column type is Multiline of text. So i posted my doubt ...
0
votes
1answer
13 views

ADFS custom claims with SPFx

Anyone using SPFx on SP 2016 with ADFS custom claims. We seem to have an issue with custom claims. Some claims are working others are not E.g. the list has two roles 1: General role 2. ...
0
votes
2answers
2k views

The property '__metadata' does not exist on type 'SP.Data…'

I'm using Pentaho to make an HTTP Post request using their REST Client. I simply want to change the value of a library's field in Sharepoint. (More details here). If I make this POST request through ...
0
votes
0answers
22 views

REST call returns Forbidden in SharePoint Designer Workflow

I have a problem with the Web Service call to add a user to a SharePoint group. I am getting Forbidden error when the workflow goes to HTTPcall step. I have followed this link to create the workflow-...
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
1answer
2k views

Upload a file to SharePoint document library using post man

Need to upload a file to one document library SP2013 , and see the response in POSTMAN, using REST API, which format , which parameter to pass
1
vote
1answer
2k views

SharePoint REST API filter based on Today's date only and not time. (Similar to IncludeTimeValue=False in CAML query)

I am trying to get data from SharePoint list with REST API that are created today only. var listName = "Carousel%20News"; var today = new Date().toISOString(); Here is my REST URL : ...
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/...
0
votes
1answer
2k views

breakRoleInheritance and addRoleAssignment not working using rest api query

I have a site accessible by everyone in our organization, inside this site, one library. In this everybody can create folder to upload the files, this is happening through provider hosted app using ...
0
votes
0answers
30 views

success call back or REST call not firing

Successfully adding items to a list but success handler not firing. Anybody know why? function addListItem() { var guidance1 = $("#guidance1").val(); var guidance2 = $("#guidance2").val(); ...
0
votes
1answer
614 views

HTTP 403 Forbidden error for getchanges REST API call

I'm new to sharepoint and stuck with the below issue: Objective: To query for changes (updated or deleted list items) from Sharepoint online sites using REST API from a C# Console application. I ...
0
votes
2answers
37 views

How to get values from AJAX call into variables for multiple selection Person and Group fields?

The following works great to retrieve multiple selection Person and Group fields: url: xurl+"/_api/web/lists/getbytitle('"+xlist+"')/items/getById('+xid+')?$select=Approvers/Name,Reviewers/Name,...
0
votes
3answers
33 views

Retrieve all choice fields for a document library via RestFUL

We have a choice field in a document library that is made up of 30 values and would like to know if there is any calls that can be made via RestFUL API to retrieve all possible values? We have an ...
0
votes
0answers
16 views

Jquery Datatable Grouping 2 levels (Group and SubGroup)

I'm trying to group datatables using SharePoint List RESTAPI and I get to accomplish level grouping and I want to group level two as subgroup. Please let me know if that's possible. The picture below ...
0
votes
1answer
18 views

Unable to get the metadata for the document name contains(') using Rest Api

Not able to get the metadata of a document contains file name with (') using rest api http://site url/_api/web/GetFileByServerRelativeUrl('filepath')/?$expand=ListItemAllFields
0
votes
0answers
19 views

Accessing the Secure Store Service using client-side code

Using JSOM or REST can I access the credentials in a Secure Store Service? I have a on-premise SharePoint 2016 Enterprise farm. And it will be accessed internally from a windows domain
0
votes
1answer
42 views

Set URL or Title of document library with REST API

I am working on a site provisioning flow and one of the requirements is to keep the URL's as short as possible. Unfortunately, when I make a document library, I can't set the URL, only the title and ...
1
vote
0answers
12 views

Create a replica of the list from root site to subsite using JSOM Approach

we have requirement to copy the list items from root site list to the subsite list using JSOM/Rest Api Below are the reasons for which we are going through this option ' Our environment does not ...
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
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 ...
1
vote
3answers
595 views

How to get the video from document library and show or Display the video on HOME page using Rest API (Client side only)

How to get the video from document library and show or Display the video on HOME page using Rest API (Client-side only)
0
votes
1answer
13 views

Using the REST API to view an External Column in a list (Not an External List)

I have done some research and it does seem possible to read an External List, but I am trying to read an External Column within a regular list. How can I use the REST API to view an External Column (...
1
vote
3answers
4k views

How to get listitem counts via rest api

I tried the below to get all item count of a list but it doesn't work /_api/Web/Lists/getByTitle('<list title>')?$select=ItemCount,Items&$expand=Items Any ideas how i can get an itemcount ...
0
votes
0answers
15 views

Sharepoint 2016 on-prem Cross site sharepoint hosted app call

i have developer site with my sharepoint hosted app. From this app i want to load list data (via rest) from different site. Developer sitecollection: http://sps1-dev:8087/sites/devsite Sharepoin ...
0
votes
2answers
33 views

List gives 500 error when trying to query via REST endpoint SharePoint Online

I've got a list on my site that I'm trying to query via REST: https://mysite/sites/division/office/program/subprogram/_api/web/lists/getbytitle('Taskers')/items I can confirm the list exists, and I ...
1
vote
2answers
46 views

Authenticating to SharePoint from fiddler/postman fails with 401

I am trying to follow the guidance in many articles, one by Fabian williams, on how to make queries from Fiddler or Postman, but I keep getting 401 unauthorized. I have SharePoint on prem 2016, with ...
0
votes
2answers
634 views

Using REST to read lists from SharePoint server and save them to database

actually I'm a Java EE developer and I want to access a SharePoint Webserver by using the SharePoint REST service. Thereby, my goal is to read the data from the lists and save them into a database (...
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 ...
2
votes
1answer
54 views

create new site collection with REST API

I am looking for a no-code solution to provision sites using the "Send HTTP Request to Sharepoint" action in Flow. Can somebody please point me to the correct Sharepoint API (so no Graph) that lets me ...
0
votes
2answers
700 views

Rest returns wrong date in sharepoint 2013

I am using below code to retrieve data from my list: $http({ method: 'GET', url: _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists/getbytitle('Mylist')/items?$select=*,Resource/ID&...
0
votes
0answers
13 views

GetSubwebsFilteredForCurrentUser how to get the CommunicationSites

The following code <root site url>/_api/Web/GetSubwebsFilteredFirCurrentUser(nWebTemplateFilter=-1) gives all the subsites under the root site. However, it does not bring up the communication ...
0
votes
1answer
878 views

SharePoint 2013 REST API Filter hidden Fields

I have a little Problem. I'm trying to do the following. There is a Field on SharePoint List items called HasUniqueRoleAssignments that is hidden on a standard REST call. If I put it in the select ...
1
vote
1answer
704 views

REST API System.FormatException: Input string was not in a correct format

I've encountered a strange problem with Rest API. I use it to collect data from SharePoint to my report. It works fine for all libraries on my site except for one. String that I use: https://<my ...
0
votes
1answer
19 views

Getting link from lookup document library

I have created a Lookup field linked to the document library which allows multiple files. I am able to get the Title of the linked documents, but I can't find a way to get the url? How can this be ...
0
votes
0answers
16 views

Adding metadata tags to sharepoint files using REST API through NodeJS

I am creating folders and posting files to SharePoint successfully using REST API in NodeJS. The library I used is "request-promise-native" and everything is working fine. Now, I want to add metadata ...
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....
1
vote
1answer
833 views

How to call the SharePoint rest API using Java web application?

I have developed one of the web based Java Application in which one of the page containing the form for uploading a files, as of now uploaded file stored on the Application server, but instead of this ...