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
2answers
868 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 ...
1
vote
1answer
176 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
72 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 ...
1
vote
1answer
61 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
150 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
69 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
43 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
159 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
94 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
615 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
178 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/...
0
votes
1answer
25 views

Inconsistency in REST calls between folder and library creation

In the process of automatisation creation of a sub sites with a few libraries I have noticed some inconsistencies between how one would create a library and a folder using the REST API. For creating ...
0
votes
2answers
83 views

Get current user group name

I am trying to get current user group name when the member is added via Active Directory in SharePoint 2013 using Rest/jQuery. Any help is appreciated.
1
vote
2answers
171 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)...
0
votes
1answer
84 views

SharePoint Online - Get User Information & Location

I have built a powerapp form for requesting access to certain groups. This app is then submitted into the SharePoint list. In this list it stores the information based on the user who has created the ...
0
votes
2answers
148 views

CAML Query vs Odata Query string operators

For getting SharePoint list values through rest. I came through two solutions writing CAML Query in the body of AJAX call Odata query selector operators(eq: select,expand) in the url ...
1
vote
2answers
317 views

How to use CAML query with rest

I am trying to get list data with an id from my SharePoint online through REST. I have my ajax call like below. getFunction:function(id){ return new Promise(function (resolve, reject) { $.ajax({ ...
0
votes
1answer
53 views

How to use SharePoint 2010 REST api to update column values?

I just found the REST API for SharePoint 2010. I'm trying to use cURL to call the API to update empty columns. I've managed to use the links below to access various information for my company's test ...
0
votes
1answer
42 views

Return items within Date Range

My array: urlArray = dataArray.map(function(item){ return { Id: item.Id, Title: item.Title, ...
0
votes
1answer
292 views

How to Move folder using REST API

I am trying to Move folder to different location within Document library using REST API. What i have done is:- I have created SharePoint add-in through which i want to move folder from one location to ...
0
votes
1answer
142 views

Rest API Update Person Field (Multi user), Lookup Field(Multi lookup), Taxonomy Columns(Multi terms)

how do i update complex fields like person/Group, Taxonomy, Lookup in rest api? any code samples would definitely help me?
0
votes
0answers
31 views

Add webpart to page using a workflow?

Does anybody know a way to add a webpart to a page using SharePoint workflows? As far as I have read so far there's no endpoint for it in the REST api. I have a working solution using CSOM, but that ...
1
vote
1answer
89 views

Look Up value through REST without select or expand

Can we get the lookup value from SharePoint list through REST without using the query operators (select/expand) ?
0
votes
1answer
270 views

How to change null value to empty using REST

How to change null value to empty string in Sharepoint custom script? Here is my code. $(document).ready(function() { getUserListItems() }); function getUserListItems() { var ...
0
votes
2answers
328 views

Multiple filters on a large list using REST

I am running into an issue when using the listdata.svc REST API on large lists. I have a query that looks like: .../_vti_bin/listdata.svc/MyList?$filter=(substringof('<query>',LastName))or(...
1
vote
2answers
33 views

API results changes

I am using this rest api in SharePoint online "web/lists/GetByTitle" to get list item using javascript. It was working nicely before but suddenly somehow the format changes when I am trying to get ...
1
vote
1answer
176 views

Create Site Policy in SharePoitn Online with PowerShell/CSOM

I was researching for add/edit/delete Site Policy in SharePoint Online with PowerShell/REST but with no luck. Is it possible with SharePoint Online with PowerShell/CSOM?
0
votes
2answers
54 views

How do I return the subsite Link URL for each subsite? Right now, it only displays the title of each subsite

This is what I have so far to basically get all of the subsites but I cannot find a way to link each subsite to it's own subsite url.
0
votes
1answer
172 views

How to sort SC results from search REST API

I need to sort my list of sites retrieved by search rest call but when trying to perform the action the list is not sorting. if I go to the xml I can see a property Title on which I should apply the ...
0
votes
1answer
97 views

AD error AADSTS90124 when accessing Office 365 SharePoint Online

From my web api on trying to call the Sharepoint REST API I am requesting for an on-behalf of access token: string[] sharepointScopes = { "https://tenantid.sharepoint.com/Files.ReadWrite.All", "...
0
votes
2answers
133 views

File properties not updating using rest api

I'm trying to update file metadata in document library using rest api. I'm getting Success alert but file's Title is not getting modified. below is code, function updateFileMetadata() { var ...
0
votes
1answer
347 views

REST API - List view threshold

We have a list that is now over 5000 and the following stopped working. All the fields used in filters are indexed var requestPendUri = webAbsUrl + "/_api/web/Lists/getByTitle('LeaveRequest')/Items?$...
0
votes
1answer
41 views

Migrated infopath form does not find UDCX file for rest query when opened in the browser

We have migrated / moved some site, to a different Sharepoint location. Previous status: site was a root master site on a collection. Updated status: site is a subsite on a different site ...
1
vote
1answer
168 views

Update attachment file in SharePoint using custom JavaScript

Anybody know how to update attachment file in list item using javascript? Any idea are so much appreciated.
1
vote
0answers
238 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
1answer
96 views

How to obtain field description using REST?

My coworker is trying to get the text from the description for a single line of text field using REST. We have so far been unable to find any methods that allows us to access it. We know how to get ...
0
votes
0answers
51 views

How to return the last item modified from each queried list using Search query api?

I would like to query all lists across different site collections based on a specific content type, but getting only the last modified item. Using Rest api and caml query, can be achieved, but that ...
1
vote
1answer
201 views

How to retrieve items from large list using rest API?

I have a list having approx 10000 items, I am trying to retrieve items filtering by 'UserEmail' column, using REST api. http://SpServer:1122/sites/Large-List-PORTAL/_api/web/lists/getbytitle('MyList'...
0
votes
0answers
171 views

Uploading base64 stream To SharePoint Online Via Rest

I have a requirement to take a file (base64) and upload it to SharePoint Online document library using a call to the RESTful endpoints. When I do this the file ends up in SharePoint Online document ...
1
vote
1answer
213 views

SP Online REST API Durable Document Link

My google searches have all led to dead ends. Is there a way to retrieve the durable link code for a document using the REST API? When you copy a link in the GUI, it takes the form of:- https://...
0
votes
1answer
56 views

SharePoint online REST API - not showing all files

I'm using the following REST endpoint for getting all items from a list: https://myCompany.sharepoint.com/sites/portal/myName/_api/web/Lists/GetByTitle('MyFolderTitle')/Items?$select=FileLeafRef,...
1
vote
0answers
34 views

Sharepoint Online REST API - cannot get .aspx files

I'm using a Java app to get files from sharepoint online. I'm using the following REST API endpoint: apiUrl = BASE_API_URL + "/web/Lists/GetByTitle('" + sharepointList + "')/Items?$select=...
1
vote
1answer
833 views

How to call the SharePoint rest API using Java web application?

I have developed one of the web based Java Application in which one of the page containing the form for uploading a files, as of now uploaded file stored on the Application server, but instead of this ...
1
vote
1answer
455 views

SP Online REST API Change the Content Type of a Document Library Item

I would like to change the Content Type of items in a SharePoint On-Line Document Library, using VBA and the REST API. I would like to change existing Folders to a custom Content Type, derived from ...
0
votes
1answer
135 views

jQuery and REST API to list all subsites and users in those subsites with full control

I'm looking to display on a web part in SharePoint online a list of all sub-sites and all users with full control to that particular site i.e. Team Site Site Owners https://ab/...
1
vote
2answers
215 views

Sharepoint REST API Download File Using NodeJs

i'm trying to save file to my drive using NodeJS as backend. So far, i managed to access https://${sites}/_api/web/GetFolderByServerRelativeUrl('Shared%20Documents')/Files('test.xlsx')/$value and ...
1
vote
2answers
408 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-...
0
votes
0answers
112 views

Calling SharePoint /_api/$batch and passing in complex object type to POST request

Looking at how SharePoint move items using the Network tab in chrome, the items get moved using _api/site/CreateCopyJobs. This returns result in type=Collection(SP.CopyMigrationInfo) This contains ...