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

1
vote
1answer
186 views

Sent an HTTP request to Sharepoint in microsoft flow error: “Server relative urls must start with SPWeb.ServerRelativeUrl”

I am using HTTP request to Sharepoint in microsoft flow to get the image file from SharePoint. I am getting below error: { strong text "message": "Server relative urls must start with SPWeb....
1
vote
0answers
37 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 ...
0
votes
1answer
34 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
1answer
27 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
39 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
68 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
47 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
1answer
29 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
235 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 ...
2
votes
0answers
41 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
32 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
67 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
561 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
217 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
24 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
22 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
94 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 ...
2
votes
2answers
64 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
1answer
192 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
130 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. ...
1
vote
1answer
44 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
64 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
6answers
273 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
55 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
60 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
1answer
31 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
115 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
30 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
116 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
29 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
43 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
232 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
1answer
31 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
41 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
46 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
164 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
26 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
2answers
428 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
109 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=...
1
vote
1answer
20 views

how to achieve SharePoint search REST API in Salesforce

Salesforce team want to query the documents, stored in SharePoint sites . We believe, need to expose the sharepoint search service to REST API so that the query results can be viewed directly in ...
0
votes
0answers
52 views

REST API update group owner using a workflow

How can I change the group owner of a group by a sharepoint workflow using the REST api? I am creating the group by a rest call in the workflow. This works perfectly but the owner is set to the user ...
0
votes
1answer
55 views

How implement REST queries in SharePoint?

I'm a dev who tries to learn SharePoint but find it quite hard to navigate around. I want to create a list that gets list item from an external list by their content type. I have made a REST query ...
0
votes
1answer
46 views

Populating Data based on Project Name

I have a small requirement where in i just need to populate Date Column Regarding that Project. The code below shows that i am populating the project name based on employee name. <script src="...
0
votes
1answer
93 views

Is there a way you can fetch SharePoint's more than 5000 items using datatable?

Is there a way you can fetch SharePoint's more than 5000 items using datatable Jquery recursively in REST API? I also wanted to show the next set of data (next 1000 items) after clicking a button.
0
votes
1answer
44 views

Populating Data in Drop down based on another Column Value

I have a small requirement where in i have a Text field named Employee Name and i want to Populate projects based on that Employee Name from other List. I have already populated the Employee Name but ...
0
votes
1answer
39 views

Duplicate Value data in dropdown

I have a basic requirement where in i am populating the textfield with people picker data and dynamically converting the textfield to dropdown. Below is my code for value fetching. <script src="...
0
votes
1answer
88 views

create link to open files (xlsx, pdf, docx) in browser in Office 365

I have created a custom page It makes an ajax call and then results are shown in the page $.ajax({ url: _spPageContextInfo.webAbsoluteUrl+"/_api/web/lists/getbytitle('Document Library Name')...
1
vote
1answer
74 views

Populating Data into Text field through REST API

I am stuck at a small place, could you all kindly help me. Below code shows, receiving People Picker Column data(Should Cost Modeler Field Name) into Text field which is (Employee Name) and ...
3
votes
3answers
365 views

Exclude folder from results in SharePoint REST API

I am using a REST API to get the list of all files inside a document library. However, this also brings the list of all folders. Is there a way to filter out the folders and bring only the files ...
0
votes
1answer
105 views

SharePoint Cross Domain REST Call from content Editor Web Part error

How to call cross domain rest call using SharePoint rest API 2013 posting data in SharePoint list from https://qa.sp.scb.org/en/whoweare/diversity/Pages/Admin.aspx To http://qa.sp.scb.org/fr/...