Questions tagged [sharepoint-rest-api]

Using the Representational State Transfer (REST) interface provided by SharePoint

693 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
1answer
161 views

why doesn't my REST call work on subsites

I have successfully used a REST call to create a list item in my root site and now need to use a second one to populate a list item in a sub site with the same data. Here are my dictionary settings ...
1
vote
0answers
54 views

Union Operation in REST Search

We are making REST base search to sharepoint. However we have to make 2 different searches. For example, if we ask "indian employees" then sharepoint does not return a document which contains India (...
1
vote
0answers
96 views

Copying list item between sites with REST/JSON HTTP Call from Workflow: Why wont these columns copy?

This is a re-post with more information hoping for a better response. I have 2 lists in a SharePoint site with the following columns: List 1 project ID = Single line of text event type = Choice ...
1
vote
1answer
35 views

How to get more information about a BadRequest error from a REST call

I am attempting to write a workflow that will copy a newly created list item from a list on a subsite to a logging list on the parent site. I must have done something wrong because my workflow is ...
1
vote
1answer
1k views

Send and HTTP request to Sharepoint with attachment

I've created a flow that will send an email to my group whenever there's a new request from our SharePoint site. I would like to add/attach an attachment in sending the email from sharepoint list. I'...
1
vote
0answers
44 views

Sharepoint 2016 REST API Authentication mechanism

We have a sharepoint 2016 instance and a C# application connects to it. we need to read documents and upload documents from C# application to Sharepoint using REST Api. Would like to see the industry ...
1
vote
1answer
40 views

REST API to Upload a File inside a Folder (if folder not available create the folder)

I want to Upload a file inside a folder using the REST API. Also if the Folder which I have passed is not there then we need to create the folder and then upload the file. Is this really achievable? ...
1
vote
0answers
119 views

SP.Utilities.Utility.SendEmail Anonymous User

I have a public website made with on premise sharepoint. Can I use rest api (SP.Utilities.Utility.SendEmail) to send email with anonymous user? I am trying but didn't work.
1
vote
0answers
227 views

Getting an 'Access denied' exception when trying to upload a document in a library

I have been working on sharepoint recently. I have created a site collection for my testing purpose, in which I have to upload documents in a library. I used REST API and CSOM to upload the documents ...
1
vote
2answers
727 views

SharePoint Online User Profile updating

Is there a REST API for updating User Profiles? I've found the one to read them, but can't seem to work out how to update them. User Profile Properties With REST API–SharePoint Office 365. Thanks.
1
vote
0answers
47 views

Can't update custom file attributes of 4% of files in document library

We use SharePoint Online. Created document library, synced to a local folder for initial file upload. Uploaded ~20k files. Created 3 custom fields (2 single value taxonomy, 1 multi value taxonomy). We ...
1
vote
0answers
115 views

Rest API delete (not working) for large set of Items in a single list in SharePoint Online(>4000 Items)

My scenario is, I have a list called Historic List, where I was trying to delete items(>4000) using Rest API (I was using Batching Size of 100) for deletion for every 2 batches I had set up timeout of ...
1
vote
0answers
138 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 ...
1
vote
0answers
270 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 ...
1
vote
0answers
17 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 ...
1
vote
0answers
265 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 ...
1
vote
0answers
241 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. ...
1
vote
0answers
179 views

How to use RowsPerPage in the REST API

Whenever I send a request with RowsPerPage set, either via GET or POST, more rows than the RowsPerPage value are returned. RowLimit works though. /_api/search/query?querytext='sharepoint'&...
1
vote
2answers
3k 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 ...
1
vote
0answers
241 views

How to filter on a Edm.Double type using rest api?

I'm currently working on a small project where I need to query the Access Request list of a site, while this list is sort of hidden the REST api works perfectly (Mind you the title might be different ...
1
vote
0answers
51 views

How to Grant permissions to domain groups in SharePoint site using REST?

I need to grant permissions to Domain Group in SharePoint site collection using REST. Is it possible? If Yes, please suggest how to do it.
1
vote
0answers
165 views

Refinement filter to look at the Title and Path properties with REST Search API

I have a POST search using the following select properties: Path,Title,Size,Author,Description,FileExtension,Rank,DocId,WorkId,ParentLink,FileType,ServerRedirectedEmbedURL,ServerRedirectedPreviewURL,...
1
vote
1answer
1k views

.docx files uploaded to SharePoint through REST API being corrupted. Other file types okay

I have two ajax calls below. First to get the contents of a document on my server into an arraybuffer. Then a second call to a Flow to add the file contents into a new file on SharePoint. This works ...
1
vote
1answer
244 views

How to fetch version history of list item and display in a list

I have requirement where I need to fetch the version history of each list item and display in a separate list where a specific column value has been changed. For Example: I have list named "Demo" and ...
1
vote
1answer
574 views

Remove an external user access for a Folder/Document in a Document Library Programatically

I have shared a folder/document to an external user (outside the organization) in SharePoint online doc library. An email to the new user is shared with One time passcode to access the file. Now, the ...
1
vote
0answers
663 views

"GetFolderById" available in REST API?

is GetFolderById available in REST API- SharePoint 2013 on premises.
1
vote
4answers
4k views

Send HTTP Request error in Flow (Invalid JSON)

I am creating a flow right now that will create pages every week. The thing is, im using the "Send an HTTP request to sharepoint" to create the pages. Below you can see that part: The problem is, ...
1
vote
0answers
142 views

Create Item in Document Library thru REST API

Is there a way to create an item inside a list library? Or perhaps convert a folder/file into a custom Content Type? I have added an item using custom content type thru the "New" menu (named "g1q" on ...
1
vote
0answers
39 views

How to process sharepoint page (site pages) data returned from rest api, i.e fetch title comments likes etc ,

How to process the html(ish) content returned by rest API while fetching site pages from Sharepoint , and is there any better approach to fetch page data. Trying the same with search api fetches ...
1
vote
1answer
740 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 ...
1
vote
0answers
109 views

Get sharepoint REST api digest header

I am trying to build an angular 4 app to talk to sharepoint sub site(not root site) level lists for attachments. The very first challenge I am facing is to be able to call the APIs which fails with ...
1
vote
2answers
901 views

how to get the user profile properties of the user who has modified the item in the display form?

we have requirement to customize the display form. we need to show user profile properties for the user who has modified the item in the display form. any help would be appreciated.
1
vote
1answer
1k views

Accessing sharepoint list using REST api with angular gives 403 error

I am trying to make a call to sharepoint list using REST APIs. I am logged in to sharepoint and when in browser tab, I enter the rest url like: https://myserver.sharepoint.com/sites/mylist/_api/...
1
vote
2answers
2k views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
1
vote
0answers
634 views

Call to Search REST Api with jQuery results in 401 Unauthorized

I have been trying to make a call through jQuery to the Search REST API but I'm always getting' 401 Unauthorized, this is my code var siteUrl = "http://myspserver:27180/sites/eyksmainportal"; $(...
1
vote
2answers
3k views

Sharepoint REST API 403 Error

I've setup an App in Azure using instructions from various places, including: http://www.ktskumar.com/2017/01/access-sharepoint-online-using-postman/ http://tech.bool.se/basic-rest-request-sharepoint-...
1
vote
0answers
70 views

Get Other Label (synonym), description property values of a term set using REST API

I am working with the Microsoft Flow where I need to get the OtherLabel and description property values of a term-set. This term set is attached as file metadata in a document library. I tried, there ...
1
vote
1answer
2k views

How we retrieve all groups and user from Active directory using client side code in SharePoint Online?

I am not getting domain groups /security groups or groups created in azure using rest Api. Is there any other method or approach to check users from groups in Active directory.
1
vote
0answers
222 views

Unable to share a SharePoint folder in a list with REST

I am trying to add a webpart that will be able to share several different types of items in SharePoint 2013 OnPremises. I am using the following code, which seems to work well with one exception. ...
1
vote
0answers
244 views

SharePoint API postman collections?

Whether you are using SharePoint on-prem or SharePoint online, there are many times when you want to do rest api calls to sharepoint to get certain tasks done. I use Postman to store common api calls....
1
vote
0answers
77 views

Update metadata of many items in library

I have the requirement, that the values for two of my site columns of all our document libraries depend on a value outside of SharePoint (its stored in a database). If the value in the database ...
1
vote
0answers
362 views

Batch requests with the REST API: Is it synchronous or asynchronous?

Simple question: is the batch request in the SharePoint 2016 REST API asynchronous or synchronous (for clarification: the multiple requests inside one batch are handled one after one [synchronous] or ...
1
vote
0answers
132 views

'Access Denied' error when attempting to read binary contents of a file stored in an O365 group via REST

I'm trying to read the binary contents of a file in an O365 group and I can read the raw file in my web browser after authenticating with O365, but if I use the same URL in a REST GET request, I ...
1
vote
0answers
282 views

Get running workflow using SharePoint Online REST APIs

I'm desperately looking for a way to get the status of a workflow on a list item using the SharePoint REST API. I need to implement it from a workflow and need to make a web service call in order to ...
1
vote
0answers
53 views

Get SharePoint Online Site Title From Console App

I have a console app written in C#. I need to get some of the information from several of the SharePoint sites on my SharePoint Online instance. For this question, let's assume I only need to get the ...
1
vote
1answer
397 views

SharePoint online > Calculate average and sum from SharePoint column

We have a SharePoint list with Duration (type:number) and Score (type :number, value:1-5) column. We want to display sum of all duration and average of all score's on the Home page. I am aware that I ...
1
vote
0answers
51 views

sharepoint next url give repeat data again

I am using sharepoint REST api. i have query like below: https://<SITEURL>/_api/lists/getbytitle('listname')/items?$select=ID,StartDate,Modified,DueDate,Body,Status,Assigned/ID,Assigned/Title&...
1
vote
0answers
382 views

REST API call Orderby - JSON changes my order!

So the below function, gets data from a list in a certain order - by SortOrder column. If i go to the url in my browser and run it the order is as expected, however the output (JSON) seems to then ...
1
vote
0answers
122 views

REST API - Filter Available Fields Choice Results?

We have a very large choice (nearly 20,000 options!!!) field that we want to be able to retrieve the choices, and preferably filter them on the server side. This is the call to get the options _api/...
1
vote
0answers
197 views

Need to check if link exists for any given SharePoint URL using RESTAPI or CSOM

I am using SharePoint 2013 Online. The requirement is, for any given SP Online URL I should be able to verify if it is broken or not using client side code/script not server side code. Please help me ...

1 2 3
4
5
14