Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
2k 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 ...
19
votes
4answers
28k views

SharePoint Online REST API Authentication In POSTMAN

I am trying to authenticate with the REST API for a list in SharePoint Online using POSTMAN. For example, the URL for my site looks something like this: https://mytenantname.sharepoint.com/sites/...
7
votes
1answer
11k 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 ...
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
2answers
10k 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. ...
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 ...
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
3answers
321 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?...
8
votes
3answers
11k 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: { ...
3
votes
2answers
5k 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 ...
0
votes
1answer
1k 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
3k 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
6k views

SharePoint Online REST API List Items Paging

Can anyone confirm that they are able to page against a SharePoint Online List Items query? Either I'm not understanding how this query is supposed to work or it just doesn't work. tenant.sharepoint....
2
votes
1answer
662 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/...
0
votes
2answers
6k 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 ...
0
votes
6answers
700 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 ...
-1
votes
1answer
293 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
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 ...
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
123 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" ...
2
votes
1answer
8k 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
0answers
828 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 ...
3
votes
2answers
3k views

SharePoint 2013 REST API create list item with attachments javascript

By doing online research, I wrote code to create list item in JavaScript for SharePoint 2013 REST API, code is working fine. I have also wrote code to upload attachments for particular item. The ...
3
votes
2answers
538 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
577 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
381 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
2k 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
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?
0
votes
2answers
708 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
484 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-...
4
votes
3answers
4k 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
1answer
147 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 ...
3
votes
1answer
1k 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
3answers
14k 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 ...
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
579 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 ...
2
votes
1answer
849 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
2answers
445 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
268 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?
1
vote
2answers
6k 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
226 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
1answer
183 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 ...
1
vote
2answers
1k 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
1answer
1k views

How to get more than one SharePoint list using REST API?

I have created multiple lists in SharePoint 2013. I need to get the multiple list items using REST API call. I have tried the method to get the multiple list items using API within the for loop but ...
1
vote
2answers
76 views

How to get all properties of a Site Page using REST API?

I am writing an application in AngularJS for a SharePoint 2013 site collection, using the REST API to talk to SharePoint. My task is to update the Image Link in the Title Bar Properties of every Web ...
1
vote
1answer
7k 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
2answers
526 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
1answer
566 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/...