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

2
votes
1answer
68 views

SharePoint 2013 RestAPI retrieve Task and subtask Parent id undefined

I am trying to retrieve the sub-task of the parent task from a list. query: ../_api/web/lists/getbytitle('Tasks')/items?$select=Title,Status,ParentID/Id&$expand=ParentID Code: function ...
1
vote
0answers
10 views

SharePoint 2013 group list task and subtask via the rest api not working [duplicate]

I am trying to fetch task and sub-task from a list via the rest api and display the in a page. here is my html: <div id="divSubTaskItems"> </div> <p>Get Site List via REST ...
1
vote
2answers
189 views

bulk item update using REST API

Is there any way to update bulk list items using REST API in sharepoint online site. Thanks in advance
2
votes
0answers
24 views

How to receive error description of invalid REST call in required language?

If my REST call to SharePoint server is invalid it returns error information with code and description, but always for xml:lang="en-US" language. For example: <?xml version="1.0" encoding="utf-8"?&...
1
vote
1answer
362 views

Upload file to SharePoint online with HTTP REST calls

According to the following link: Working with folders and files with REST I can add a file using url: http://site url/_api/web/GetFolderByServerRelativeUrl('/Folder Name')/Files/add(url='a.txt',...
3
votes
1answer
32 views

Is there any way to find out , when the user had updated his profile last time

I want to know the date and time , when user had last updated his profile
1
vote
1answer
128 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
1answer
91 views

How to get Site Owner Via Graph

I'm attempting to get site owners via graph. Documentation indicates this should be possible via /sites/{site-id} via /sites/{site-id}. I'm using beta. The problem is I'm not even getting a blank ...
1
vote
1answer
210 views

Rest API to query User Information List

I am experimenting with some Rest API code. My knowledge of javascript and jquery is basic but I know enough to usually get what I need. Usually through trial and error. Here is what I am attempting ...
2
votes
2answers
221 views

How to update ModerationStatus (approval status) of a file in share point using Rest API

after check in a file using rest api , it having approval status as 'draft', do we have any rest api url (postman) to update approval status of a file in share point.
2
votes
1answer
30 views

Extract sub site logo with MS Graph (or any other way)

I need to extract sub sites logo and show it in a list. This is something I thought could be made with MS Graph, but in MS explorer I can't find the picture element. Only site ID, members, etc. ...
0
votes
1answer
39 views

Fetching List Item based on two list

I have a requirement for which i have been stuck on for few days. I would kindly require some help on this. So,I have 3 Lists naming List A, List B, List C. List A acts as a master list which has ...
3
votes
2answers
179 views

How to get today task from multiple team subsite's task list?

If I enter the project name in a project list then based on that project name it should create a team subsite which will contain a one task list. for example there are a 100 team subsites and each ...
1
vote
1answer
317 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
47 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
37 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
36 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
40 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
110 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
60 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
34 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
396 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
45 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
41 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
113 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
583 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
321 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
26 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
28 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
142 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 ...
3
votes
2answers
114 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
314 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
219 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
121 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
114 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
412 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
130 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
116 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
37 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
219 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
40 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
162 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?
3
votes
1answer
30 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
450 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
36 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
51 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
62 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
315 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
32 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 ...