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

6
votes
1answer
9k views

Make CAML query with in rest api call

I have a SharePoint list and i need to get the list items by using JSOM.how to add CAML query with in the API method? i have used the below code var url = "/_api/Web/Lists/GetByTitle('list')/...
5
votes
1answer
2k views

How to Get Lookup column using lookup column using REST API

I have one summery custom list in which I have lookup column of detail list. So I am retrieve all data from it using expand it. But in detail list I also have one lookup column of personal Detail ...
3
votes
2answers
1k views

How to use SharePoint REST Api in an application that is hosted outside of SharePoint

I have a requirement where I have to perform CRUD operation on SharePoint 2016 List and Libraries using the REST API from JavaScript. The problem is the application from where I need to make the calls ...
3
votes
2answers
4k views

How to authenticate to SharePoint Online (Office 365) using REST API when On-premise ADFS Sync to Office 365 cloud is enabled?

Many enterprises who use Sharepoint Online leverage the Office 365 integration with an on-premise ADFS. That way they can have the benefit of having Sharepoint on the cloud, but while being able to ...
4
votes
1answer
1k views

unable to copy all documents from one library to another

I am trying to copy multiple documents from one library to another using SPD workflow2013 in which am using REST API's and Looping, for copying single document I followed This article and it works ...
0
votes
3answers
191 views

How to bind the REST API result

Today I got requirement to get the list data using rest and bind to html drop down . I am getting the information by filtering it from browser (_api/web/lists/GetByTitle('Tabletop%20Sessions')/items?...
13
votes
3answers
3k views

When SharePoint list with 5000+ items queried with ID returns expected result but with any other column gives threshold error

I am trying to query a SharePoint list which has more than 5000 items. When I run filter query with ID, it returns the expected results. But when I run the same query with any other column it throws ...
1
vote
1answer
5k views

Connect to Sharepoint Online REST API using Java

I'm trying to connect Sharepoint online REST API using Java. Retrieved cookies -rtfa and fedAuth. Also got xForm Digest value and trying to authenticate. But it always throws Authentication error. ...
7
votes
3answers
9k views

REST API call in SharePoint gets result, but when returns result becomes undefined

Getting data from a list using rest API. Here is my code , function getItems(url) { $.ajax({ url: _spPageContextInfo.webAbsoluteUrl + url, type: "GET", headers: { ...
2
votes
1answer
7k views

REST API Getting Fields from an Lookup List

I have a REST query that looks like this /_api/lists/getbytitle('MainList')/items?$select=Title,LookupField/Id,LookupField/Title&$expand=LookupField That works fine. But when I try to pull ...
6
votes
2answers
3k views

REST API Limitations On Premise and Workarounds

I am just trying to understand the Limitations of the REST API in SP 2013 On Premise and it's workarounds. Can anyone please contribute with proper references? Some of the limitations I have heard ...
0
votes
1answer
614 views

How to perform POST operations in SharePoint 2013 using REST API from external Application

I am trying to perform POST operations in SharePoint 2013 environment using REST API from external application running under the same company domain. Till now I am to do the GET operation successfully ...
5
votes
4answers
2k views

Rest API to pull all list items that uses a unique Content Type under a specific URL

I am on SharePoint Online environment, where i have a site(Lets call it Site A) https://xxxxx.com/sites/sitecollection/SiteA and multiple sub sites under Site A (Subsite B, Subsite C, Subsite D and so ...
2
votes
1answer
532 views

Search REST API for documents modified by logged in user

I am working on a query to get the documents modifies by logged in user. I am able to get the documents with the specific file extension. var myurl = _spPageContextInfo.webAbsoluteUrl + '/_api/...
2
votes
1answer
1k views

Sharepoint Rest API How to Expand Multiple Lines of Text Lookup Field

I have a list that has a lookup field on a documents library. I can get and expand fields no problem only if they are single line of text fields (FieldTypeKind = 2). But when I have a multiple lines ...
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
2answers
4k views

sharepoint rest api get distinct values from list

I have list with two columns, like group and users, while adding item to list am showing existing Groups in list new item form. the Group field is not unique. here my requirement is i want show ...
-1
votes
1answer
137 views

Is it posible to upload file in Lists Attachments in SharePoint in custom way

Is it posible to upload file in Lists Attachments in SharePoint in custom way I already tried using REST and JS but I am facing an error and it can't upload if it's posible kindly suggest what way to ...
5
votes
2answers
1k views

How can I know REST API request done?

I use in my application a request REST API which works asynchronous. How I can do to know the request is done?
2
votes
2answers
78 views

How to attach file in sharepoint I am using that function but its error [duplicate]

What is the problem with this? Im trying to attach file in SharePoint. <!DOCTYPE html> <html> <head> <title>Sample</title> <script type="text/javascript" ...
6
votes
0answers
726 views

REST API to get Frequent Sharepoint Sites programmatically?

Sharepoint Online offers a view of the frequent sites of the current user. It is available in the home page of the "My Site" of the user. I'm asking if there is a REST API (or something like) to get ...
5
votes
1answer
3k views

Approaches for using REST API on list with more than 5K items

We are building a SharePoint application where an external system will upload data into SharePoint list using REST APIs. The volume of data in the list would be high and it would go above 5k items in ...
2
votes
1answer
353 views

How to make Two machine search service application using PowerShell?

we are using SP 2016 Enterprise On-Premises Search application , in development environment - used standalone machine with all the components in the same box. But while decided to go for production, ...
1
vote
3answers
316 views

How to get list item in SharePoint using REST API?

I used this synthax to get list Items http://server/site/_api/lists/getbytitle('listname')/items I get a list repeating today's date but not items . EDIT: I notice that the number of lines that ...
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/...
1
vote
3answers
2k views

Is there any REST API to start a SharePoint designer workflow?

I have a requirement to start a workflow from outside SharePoint. If any REST API exists to start SharePoint designer workflow. Can anyone help me with this, which API should I use for this?
1
vote
1answer
476 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 ...
0
votes
2answers
565 views

skip n items take n items from sharepoint list Rest api

Simple query, I want to get the items ordered by id between 11-20 so I need to skip forst 10 items and than get 10 items. I try retrieve them with the query below. this.props.httpClient.get(`${this....
4
votes
3answers
2k views

$batch operations on SharePoint 2013 on-premise not working

I need to do bulk inserts and learned that there is the $batch operation in the REST API. https://msdn.microsoft.com/en-us/library/office/dn903506.aspx I read through this and following and explored ...
4
votes
1answer
341 views

Credentials popup issue while adding a user to SharePoint group with REST API

I am using SharePoint 2013 On-premise, We have two SharePoint groups(Group-A, Group-B) in a SharePoint site. Group-A is owner group of Group-B, Generally Group-A users can add,delete users from Group-...
3
votes
1answer
645 views

SharePoint 2013 REST API ItemCount on / folder is 0

When using the ItemCount function on the / folder, the count is 0. The result of GET /_api/web/GetFolderByServerRelativeUrl('/')/ItemCount is: { "d": { "ItemCount": 0 } } But the content is ...
3
votes
2answers
3k views

Sharepoint REST api - Recursively fetch all folders in a document library -

I have a set of folders say Folder1 containing Folder2 and Folder3. Folder3 contains Folder4, Folder5 and Folder6. When i use the OData expand parameter - $expand=Folders/Folders i get only details ...
3
votes
3answers
11k views

Sharepoint 2013: Rest API - does header need to include X-RequestDigest?

I'm making progress in learning to use the rest API (HTTP web service) in SPD. WF1: Acivates to a change to a list. WF1 is suppose to launch WF2 using the Rest API. Within WF1 I have the WF2 GUID ...
3
votes
1answer
912 views

I want the list of licensed user in office 365 SharePoint Online Tenant

var items; $.ajax({ url: 'https://my365Site.sharepoint.com' + "/_api/web/siteusers", type: "GET", headers: { "accept": "application/json;odata=verbose", }, success: ...
3
votes
1answer
133 views

SharePoint 2013: Get multiple UserProfile with REST API

There are over 10000 User Profiles. So I want to get all user Profiles in single request with all user properties. Is it possible to get multiple users in single request matching particular ...
2
votes
2answers
123 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
637 views

SP.UI.ModalDialog.showModalDialog does not work for site pages or external link?

The code below keeps giving an error "Sorry, something went wrong -- an unexpected error has occurred." I tried the same code to open an Excel workbook from another library and it worked. The ...
2
votes
3answers
3k views

Update attachment of list item using rest api is failing

I am trying to update attachment of list item using REST API. I am getting the below error: {"error":{"code":"-2130575257, Microsoft.SharePoint.SPException","message":{"lang":"en-US","value":"The ...
2
votes
1answer
252 views

Multi-select managed metadata column - get distinct values

I have a list with multi-select managed metadata column. How, preferably using search REST api, get all distinct values from this column from all list rows?
2
votes
2answers
376 views

Unauthorised Error Creating Sub Site with Workflow

I'm trying to create subsites for items in a project list using a SharePoint Designer Workflow using the SharePoint REST API services, but each time I attempt to run the workflow I get the Response ...
2
votes
1answer
534 views

How to get Document/File Name (or any Related URL which holds file/Document Name) from Document library in SPD workflow which Uses RESP API's

I want to get the file/document name from library using the REST API and Looping which iterates through all items in library I have tried same thing for a normal list ,there I can get the name of any ...
1
vote
1answer
197 views

Get list items ids using rest api and integrated to like functionality (id value is not static)

Thanks for this article Enable like function from catalog page via javascript object model - improve this? is very useful and its working on my page, but i need your help, i am calling rest api ...
1
vote
2answers
510 views

Update document library column value for given row ID

I'm trying to update the status column in a document library where the name is "sharepoint_test.csv" and I'm following this tutorial to do it. URL: POST:URL https://mycompany.sharepoint.com/...
1
vote
2answers
259 views

How to filter SharePoint search rest api results based on current logged in user

I am currently using the SharePoint search rest api on a document library. The search results are coming fine. Now I have a requirement where I want to filter the search results based on the Author of ...
1
vote
2answers
5k views

How to delete list item in Parent site using REST API

am trying to delete the list item in Parent site. i have a button in subsite when i click on the button i need to delete the list items based on query match. am able to update with but not able to ...
1
vote
1answer
52 views

Can't retrieve all Items from all lists that reside on a single subsite

SP Community, I am absolutely stumped and desperate for help. I have been up and down StackExchange trying to get 3 separate attempts to - 1. query all of the lists within a subsite and to then - 2. ...
1
vote
1answer
5k views

How to fetch user profile image from Azure Active Directory from SharePoint Online page?

I have to display all SharePoint Online user's profile information including profile picture on a page in SharePoint Online. Here some of user has profile picture set in Office 365, while some users ...
1
vote
1answer
337 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 ...
1
vote
1answer
39 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 ...
0
votes
1answer
2k views

Getting HTTP error 400 Bad Request - Invalid URL when trying to update SharePoint field

I am trying to update a field inside a Sharepoint document library using Apache HTTPClient, but keep getting HTTP error 400 - Invalid URL. The code and the output is as mentioned below. Please advise ...