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

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

0
votes
1answer
21 views

Retrieve one library from each site and show the last item using ajax

My senario is like this: In every site there is a list called Projects. I need to loop through each sub site and retrieve the last item from Projects list, and display them on a page in tabular ...
0
votes
0answers
21 views

Create a Page Using Rest API and excel Sharepoint 2018

I am new to the rest API and don't know how to use it yet. I am trying to create a page that every week, will check an excel file, and create a page, based on the information on file. For example: On ...
0
votes
1answer
18 views

Sharepoint REST API is not returning any item for some users

When I try to fetch Sharepoint items from Task list using REST API, for some users, it is returning correct values. But, for some other users, it is not returning any values. This is the first time I ...
1
vote
1answer
33 views

How do you create a SharePoint RestAPI?

I am working in SharePoint Online with Office 365. I need to create a REST API so that an external program is able to access data that I will have in a simple document library. It will have folders ...
1
vote
1answer
28 views

How to get access token to create a list

I'm trying to create a list with javascript. From the Sharepoint API Documentation: url: http://site url/_api/web/lists method: "POST", body: { '__metadata': { 'type': 'SP.List' }, '...
0
votes
2answers
35 views

REST api to change visibility of list?

Is it possible to change the visibility (Hidden or not) of a list using the REST API? I need to hide some (system) lists from the users, but I would very much like not to use custom permissions if ...
0
votes
0answers
40 views

Using a REST API to Update All List Items In A SharePoint List

I have created a SharePoint List called AllDocDetails that has Document Title(unique), Document Type, Desc, Uploaded Date, Updated Date, Expiration Date. All these fields will be filled once an item ...
0
votes
1answer
20 views

Versions of ListItems in SharePoint REST API?

i need to to create/access versions of SharePoint-ListItems (major/minor versions) using REST. If I understand the SharePoint 2013 REST Syntax (wall posters) correct, than it should be possible to ...
0
votes
2answers
32 views

SharePoint REST API returns 404 for document library but is working for lists

I am using C# HttpClient to query odata from Sharepoint. This works wonderfully if I am accessing a list. I generate the SharePointOnlineCredentials to get authentication cookie and then I pass the ...
0
votes
0answers
12 views

microsoft graph api for sharepoint list takes a long time to return new data

i am creating a new list item like: const httpOptions = { headers: new HttpHeaders({ 'Content-Type': 'application/json' ,'Authorization' : "Bearer " + token }) ...
1
vote
0answers
29 views

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API?

What permissions do I need to get the request digest of a SharePoint site using SharePoint's REST API? If I have view only access to the site but I have contribute access to a list on the site can I ...
1
vote
1answer
20 views

How can I get current user roles for specific document in a document library?

I can add a role to a document with this code: var REST = globalvars.absoluteUrl + "/_api/SP.Sharing.DocumentSharingManager.UpdateDocumentSharingInfo"; var data = JSON.stringify({ '...
0
votes
1answer
27 views

REST API couldn't create list field

I am trying to create list fields using REST api. But when I call the code given below many times, it creates some of the fields and not all of them. code: function addnewfield(name){ $.ajax({ ...
1
vote
2answers
101 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
45 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/...
0
votes
1answer
21 views

SharePoint JSOM display next 6 items on each scroll event

We have a requirement to show 6 items from SharePoint list on scroll event. That is: On each scroll event we need to show the next 6 items in a div section Has anybody worked on this type of ...
1
vote
0answers
11 views

Getting the direct link to image stored in Sharepoint Library on external site

I have a company public website that is using some images from our Sharepoint internal site. I have an API that is getting the content from the list as well as the direct image url that goes in the ...
2
votes
1answer
28 views

Does the Microsoft Graph API also limit total SharePoint list items to only 5000?

I have found a couple blogs indicating that the Graph API uses the REST API, which would imply that the same 5000 item limit applies. But I cannot find any official Microsoft documentation ...
0
votes
0answers
17 views

Sharepoint Online REST API from external web application: 403 Unauthorized

Following this tutorial, I have done the following: I have a subsite setup on my organization's sharepoint farm. I have created a client_id and client_secret and granted the client_id permissions of ...
2
votes
2answers
26 views

Batch operations in SharePoint 2013

Unfortunately, I am stuck in a SP 2013 world now. I know batch operations (using REST APIs) are only supported in SharePoint 2016+ and in SPO. Pnp Js also has a good batch processing extension methods....
0
votes
0answers
14 views

Use REST to extract specific HTML content from another page in SharePoint Online

I have a web part that uses search and display everything in two separate columns, for example like this: <h2>All projects</h2> <tr> .... </tr> <h2>My projects&...
0
votes
0answers
11 views

Project Server - Fetch QueueJobs using REST

I tried to get some information about Queue and Projects in Project Server 2016 (OnPrem). I did it using REST and it is working well for basic information like name, owner, ProjectResources, etc. ...
0
votes
1answer
33 views

How to Check Current User Exists in AD Group using Rest Api

We have a SharePoint 2013 On premise environments and having the Domain Groups with the Names contains SPECIAL characters as (Role)x$Customer$2838. Using the below rest call i am able to get all the ...
2
votes
1answer
33 views

Accessing SharePoint site list from Angular client

If I go to Microsoft's Graph Explorer and use a URL like: https://graph.microsoft.com/beta/sites/4development106.sharepoint.com:/sites/DBSchenker:/lists/OEC_Docs/items I can see my request succeeds. ...
0
votes
0answers
24 views

Accessing Excel Rest API in Sharepoint Designer

I am trying to read from an excel file from a location in sharepoint online using excel rest API. sitename/_vti_bin/ExcelRest.aspx/Odata/?$format=json I am running the operation under App Step, ...
0
votes
0answers
10 views

Information Management Policy Settings using CSOM in SharePoint Online or using any client API

Is it possible to set the Information Management Policy Settings for content types in a document library using CSOM in SPO...??? I am trying to set the label for the document content type in a ...
1
vote
1answer
24 views

Forward paging with SharePoint REST API

My Logic REST API fetch record from custom list I fetch top 6 records, while I fetch record I will get one more jSON node which will have forward paging URL. I am assigning this URL to HTML5 button ...
0
votes
1answer
22 views

How to use Call HTTP web service action in SP Workflow to get an item from another list?

I would like to pass an ID as a filter via REST api using call http webservice action in SP Workflow. The workflow should trigger the action (the web service) and return a field value from another ...
0
votes
4answers
52 views

Removing Duplicate Value in Rest Api

I have a small requirement where in i need to remove the duplicate values from the array that i am getting. Overview In the below code, what i am trying to do is to get top 1000 employee names(Should ...
0
votes
1answer
18 views

Getting GUID of a document using REST

I can preview a document in sharepoint by hitting /sites/sitename/_layouts/15/WopiFrame2.aspx?sourcedoc={GUID}&action=view&wdSmallView=1 I know I can also get the preview by just placing the ...
1
vote
1answer
32 views

SharePoint Designer create or update item to another list in subsite

I'm trying to see if there's another way to display an upcoming event web part to various sub sites based on the event category. The source list is located in a site collection. I have several ...
0
votes
0answers
29 views

Dynamic multiple approvers in SPD Workflow when rejection could change existing approval tasks

The Environment: I have an AngularJS application running on a SharePoint Online platform to manage approval of some Business Objects through a SharePoint Designer Workflow. No Developer Sites, any ...
0
votes
0answers
14 views

Can we do same using SP.RequestExecutor instead of ajax?

I am using following code, can we do same using SP.RequestExecutor instead of using ajax? var count = 0; var zip = new JSZip(); fileUrl.forEach(function (url) { var request ...
0
votes
1answer
16 views

Single Page App (SPA) utilizing several lists and libraries

Does anyone else build SPAs with multiple lists and libraries? I've built many with single lists or libraries. My task is to build an app which would allow users to enter data about a project, upload ...
0
votes
2answers
31 views

Fetching People Picker Value based Through REST API

I have a small requirement regarding People Picker Data. What i am trying to do in the below code is to fetch data from List A into List B. There are various columns involved but the one i am facing ...
0
votes
2answers
24 views

Filtering List Data

I have a small requirement where in i want to filter the list data based on some columns but i cannot wrap my head around the Rest Api Query. So, i want to filter data based on few columns which are ...
0
votes
1answer
29 views

Import export users from SharePoint group to excel using rest

I want to add/remove users from SharePoint group when excel file uploaded by admin person using rest odata or angular. Can any one please help me in this requirement?
2
votes
1answer
25 views

Making HTTP requests to onprem SharePoint Server (Project Server)

I have existing code that makes plain HTTP requests against the REST API's of SharePoint Online (Project Online): protected object MakeRESTCall(string restRelativeUrl, RestResultType resultType) { ...
1
vote
1answer
36 views

Send exported Word Document from another application to SharePoint Library (SP2013 on-premise)

First of all, there are similar questions on this forum, but I don't really know if and how I can adopt them to my Use-Case, which is based on a workflow script. I am working on a script, which ...
0
votes
1answer
40 views

Sharepoint 2013 REST API GetFolderByServerRelativeUrl will not return the Author details

I looked over other answers that was having the same problem, but those answers don't seem to resolve this problem. How can I get the request to include the Author name? Although, this request returns ...
0
votes
0answers
18 views

GET listitems paged and desc ordered

I have a working REST request which returns items ordered desc by a date (newest first). Now I want to paging the results by using $skiptoken. But because skiptoken works with the last received item ...
0
votes
0answers
18 views

Quick Edit REST API

I have a small requirement from my manager. Previous Requirement: The Business Person already have a Share Point List where in all the data regarding employees is saved. They wanted another List ...
0
votes
1answer
23 views

Get List items by specific content type from site and subsites

I'm trying to extract list data from a site (with REST query) and its subsites based on their content type and put everything in a different list. For example from https://mytenant.sharepoint.com/...
0
votes
0answers
26 views

Rest API on online SharePoint (office 365)

I need to develop a custom REST API service and publish it on my office365 domain something like this (https://test.sharepoint.com/_api/web/Contact) How can achieve this without depend on the Azure, ...
0
votes
0answers
31 views

Doc library creation using custom template in REST API

I found this post saying its not possible. Is this still true? It is not possible to create list based on a template from a SharePoint Workflow or from the REST API out of the box. Am using the ...
0
votes
1answer
31 views

SharePoint 2013 - retrieve error using item id

I got a problem with the item id, at the moment i could create a new item without problems but i can't read it since i delete 2 items, now when i try to retrieve the item properties i got this error :...
0
votes
1answer
51 views

Sharepoint REST api search for a querytext in a list

I am having issue while searching using query text in a specific list for cross-domain. Also I am not able to search in a specific site, when I use the following get query, url: appweburl + "/_api/...
0
votes
1answer
25 views

SharePoint Workflow “InternalServerError” when try to move a document using rest api

When I try to move document between libraries of same site using rest api, it shows "InternelServerError", file not move, but workflow status is completed. Note: Both are created by using same ...
1
vote
1answer
42 views

Download and upload file from share point using Java (Rest API call)

I Know there are several post on sharepoint.stackexchange/stack overflow for this. But I didn't get from any of the post how to achieve this. I have access of share point (I mean share point ...
0
votes
1answer
41 views

Get all lists on subsites by content type with REST API

I want to get all lists from subsites etc. based on their content type with REST Api. For particular list ("ProjectList") this works: /_api/Web/lists/GetByTitle('ProjectList')/Items? $select=...