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

SharePoint REST API - HTTP/1.1 500 Internal Server Error - Configuration

I am connecting to SharePoint to query lists, all was well but now I get a HTTP/1.1 500 Internal Server Error for the same request which was ok and tested. I guess the problem is from a configuration. ...
0
votes
1answer
38 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"...
0
votes
0answers
23 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 ...
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
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 ...
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?
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 ...
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
2answers
26 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?
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
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
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
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
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/...
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
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
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
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
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 ...
0
votes
1answer
35 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
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 ...
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
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
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 ...
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
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 ...
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
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
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
0answers
18 views

How to share SharePoint online page on social media?

How to share SharePoint online page on social media (Facebook, Twitter and LinkedIn) programmatically (JSOM or REST API) so that everyone (external users) can see the content of this page without ...
0
votes
1answer
24 views

Create list view using REST API

Following method works properly to create list view but I am not able to(don't know) add/select columns in that view, in the same REST API call. Please Help. $.ajax ({url: _spPageContextInfo....
0
votes
0answers
16 views

Rest API reload page after form dialog is saved

I am currently using REST API to get list items and display them on HTML via a Content Editor Web Part. We have the list hidden and do not wish to allow users access to it. On there we have the ...
0
votes
0answers
20 views

Excel Services Rest API in Worflow returns Forbidden responsecode

I am trying to access excel of a document library using rest service. I have a workflow which is retrieving data using rest api: The http request is: https://<>.sharepoint.com/sites/<>/_vti_bin/...
0
votes
1answer
43 views

How to get all metadata of the contents [duplicate]

Site contents images are attached to this question page. I need to crawl the metadata for the pages/atozindex. It contains the a to z documents. How to form the request by using restAPI? Can anyone ...
0
votes
1answer
44 views

Authentication to SharePoint using secure authentication and CSOM in a .NET application

I'm using CSOM for making REST API calls to a SharePoint list from a C# application. This needs credentials (of course), however I've found that it needs a username and a password in plain text. ...
0
votes
1answer
23 views

sharepoint rest api sitecollections

I use the following API https://.sharepoint.com/_api/search/query?querytext='(contentclass=STS_Site)'&rowlimit=500 for getting the site collection, but it seems to miss site collections. for ...
1
vote
1answer
28 views

PnPjs alternatives for .NET

For developing with the SharePoint REST APIs using JavaScript I always use PnPjs because it's an easy way of getting data from SP. PnPjs is a collection of fluent libraries for consuming SharePoint,...
0
votes
0answers
20 views

How Can i retrieve pages metadata using RESTAPI

While crawling the metadata using SharePoint connector via REST API we are unable to form the Pages content. I have the site contents name like pages, under the pages I have totally around 40 pages, ...
0
votes
2answers
24 views

Querying Very large list using Rest API - advice required

We have a list, the items will be added everyday by scheduled job. The number of items varies around 5000 to 12000 every day.. The list has columns like: Country: Lookup City: Lookup StartDate: ...
1
vote
0answers
23 views

Calling SP 2016 on-prem REST API using VUE js

I'm trying to call the SP 2016 on-prem REST API on 3rd party VUE.js application(cross domain), and struggling on the authentication issue. To avoid the cross domain issue, I try to call REST API via ...
0
votes
0answers
17 views

How to retrieve all the SharePoint surveys I didn’t answer yet?

How to retrieve all the SharePoint surveys I didn’t answer yet using Rest API?
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 (...
0
votes
0answers
33 views

LinkingUri and LinkingUrl are null while creating file in SharePoint from Rest API

I am creating a file from SharePoint REST API in a Folder in SharePoint "LinkingUri": null, "LinkingUrl": "", How i can get created file URL to open that file?
1
vote
1answer
32 views

is SharePoint Rest API safe to publish?

Is publishing /_api in a production environment to be utilized with authentication is safe? if not are there ways to secure.
1
vote
0answers
24 views

Restore current approve version REST API

Is there a way to restore current approved version using REST? I managed to get the number of versions but I could not figure out how to identify the version number of the current approved version. ...
0
votes
0answers
17 views

LastItemModifiedDate not working as expected

I use MS Flow to access lists via the API and determine the last time anything on them was changed, using the LastItemModifiedDate property. However, the property returns a time between 1:00 and 11:10 ...