Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
1k views

Update list item using REST Merge, but field names are ambiguous

I have a sharepoint online list which I am updating via javascript in the same sharepoint site. The list has two similarly named columns: Display name: "Learner Score" Internal name:"LearnerScore" ...
2
votes
2answers
23 views

How do I get sharepoint list items by passing ID as the parameter dynamically using rest api

I have to fetch values for particular Id's by passing ID in URL. Ex: if I write ?ID=2, it should give me the values corresponding to the id in the list.
1
vote
1answer
32 views

How to authenticate a Java Job at Sharepoint Online

I want to manupulate (read, write, delete) files in a document library of my sharepoint (hosted at Sharepoint Online). Ultimately this will be Part of a Java Webapplication where a backend job runs ...
0
votes
1answer
26 views

SharePoint ReST API: Getting 403 while getting subsites of root site

We are trying to perform GET http://<site url>/_api/web/webs using SAML Authentication. User can access subsites through UI. But still getting 403 while accessing above API using ReST. Kindly ...
0
votes
1answer
17 views

How to fetch all data associated with a SharePoint web part using Microsoft Graph API?

I am wanting to fetch all of the associated data for the web parts of a SharePoint Page using the Microsoft Graph API. Is this possible through the beta or v1.0 API? I can't seem to find any ...
0
votes
1answer
47 views
+100

Filtering large list (more than 5K items) using two columns with REST API

I have a list which has more than 5K items in it and I need to filter it by using multiple columns. Below is the challenge that I am facing. Scenario 1: Below REST API fails with Microsoft.SharePoint....
21
votes
5answers
49k 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/...
0
votes
2answers
687 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
0answers
15 views

filter subsites if current user is member of owners group using REST API?

The following code returns all the subsites where the user has access: "/_api/Web/GetSubwebsFilteredForCurrentUser(nWebTemplateFilter=-1)?$filter=WebTemplate ne 'APP'" However, I would like to ...
0
votes
2answers
6k views

SharePoint 2013 remote authentication in Rest API

I am trying to use SharePoint Rest API from a standalone application with hard-coded user id and password. The operations are working fine using this method. But we are trying to authenticate the ...
1
vote
1answer
27 views

Add Lookup column to SharePoint list using Flow/Power Automate and Rest API

I am trying to add a Lookup column from a SharePoint list using Microsoft Flow(Power automate). The flow retries once and says "Bad Gateway". I'm not sure why the below is not working given that I ...
0
votes
0answers
19 views

Using SharePoint's REST API to $expand a folder's people field

I can't quite remember how to expand a field of a folder or file. Example: I can do something like Folders/ListItemAllFields/RoleAssignments/Member to expand the role assignments, but I cannot do ...
0
votes
0answers
15 views

REST API - Get document library properties that are in a folder of that library

When getting properties from a document library with the SharePoint API, I'm using the following call var httpRequest = new HttpRequestMessage(HttpMethod.Get, spPath + spSubSite + "/_api/web/lists(\'"...
0
votes
0answers
14 views

How to Get Parent Term from child term using TaxCatchAll?

Suppose a SharePoint list has managed metadata column "A". List contains the item with the child term tagged to that "A" column. Now when I try to fetch the term using rest API like this: /_api/web/...
1
vote
3answers
21 views

Rest API to return all Terms and their GUID

I am looking for SP Rest api to return all Terms and its GUID under specific termsets in my SP online Site and in my On Prem site. Is it possible? if not Rest API, is it possible to pull them using ...
0
votes
1answer
21 views

SharePoint Serach Rest API How to get People column value by email or User Id

I'm using SharePoint Serach Rest API to get CreatedBy column data, Where I have used Name in Query text Var searchdata = { { '__metadata': { 'type': 'Microsoft.Office.Server.Search.REST....
0
votes
1answer
27 views

Hello User, Userid is not defined

I am using below code. I am getting an error: Userid is not defined. <script type="text/javascript"> var loginName = ""; var userid = _spPageContextInfo.userId; GetCurrentUser(); function ...
0
votes
1answer
23 views

How to get Email from SiteUsers using filter dynamically

I need to fetch the User details from SiteUsers Rest API using Email on the basis of filter. Value passed in email would be dynamic value coming from another API and value of email will be in ...
0
votes
0answers
14 views

how to get the link to team via graph api

I have the script below and i can get myteams (graph api /joinedTeams).But i also want the url link to the individual teams.This is for a webpart on a classic sharepoint page. It shows as null when i ...
0
votes
1answer
8 views

How to get REST API followed

How to get followed items using REST API (C# and JS)?
0
votes
1answer
1k views

Search REST API to filter Custom Managed Properties values

I am using below mentioned query to get items from SharePoint lists(based on specific source results). However, I would like to add filters to "Column1" in below query itself. So, that i can restrict ...
8
votes
1answer
1k 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 ...
0
votes
0answers
5 views

query same list on root web and in multiple subsites using rest api

I have the same list called "Users Info" in root site and in the subsites as well. I would like to query these lists and aggregate them and display them to the users. The first problem I am facing is:...
0
votes
1answer
21 views

Pagination in SharePoint Rest API

We have to load records into page using REST API and to show 5 records per screen. So we want to have Prev and Next buttons so that user can navigate backward and front as loading of all records at a ...
1
vote
2answers
711 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.
0
votes
1answer
26 views

Can you use REST API to upload photos from your phone onto SharePoint 2013?

I need to develop a mobile web application that allows users to upload photos onto a SharePoint photo library or document library using REST API. For some reason, users can upload photos from their ...
1
vote
1answer
4k views

Batch update/create list items using REST API in Sharepoint 2013

I know the OData batch process built into SharePoint Online 2016 and O365 has not made it to SharePoint 2013 Online, but I have read a few places that say using a batch create/update IS possible in ...
0
votes
2answers
33 views

List of Site Collections thru API Call

I'm looking to see how to get a list of all the site collections. This is to make it easy for users to just come to the root, and see links to all their site collections. I've figured how how to get ...
0
votes
2answers
25 views

Upload file to SharePoint private group via REST API

I want to know how to upload files to SharePoint private Group via REST API. How to get SharePoint private Group folder? How to upload file to this private Group folder? Here is link of my private ...
1
vote
1answer
15 views

SharePoint REST API Call returns result as block of array

I have a REST API call in SharePoint and everything is working as expected, however the output returned by call is array of array if more then 100 records are fetched (attached image): I am not sure ...
0
votes
1answer
18 views

REST API get choice values from column in ascending

We are using this URI: /_api/web/lists/getByTitle('MyListName')/fields/getbytitle('MyColumn') to get the choice values from the column. I need to pull them into an array alphabetically, but the $...
0
votes
1answer
21 views

How to get File names from a Document Library using a REST GetByTitle query and TypeScript?

I am firing this query: _api/web/lists/GetByTitle('MyLib')/items?$select=Title,File/Name&$expand=File/Name I am getting a bunch of files, I see the names I want when running the query in the ...
1
vote
0answers
31 views

How to create a new content type in SharePoint using MS Graph / REST?

I tried to add a new content type to list using MS Graph Explorer: Request: POST https://graph.microsoft.com/v1.0/sites/{site-id}/lists/{list-id}/contenttypes with body: { "description": "...
0
votes
3answers
7k views

The property '__metadata' does not exist on type 'SP.Data…'

I'm using Pentaho to make an HTTP Post request using their REST Client. I simply want to change the value of a library's field in Sharepoint. (More details here). If I make this POST request through ...
1
vote
1answer
1k views

How we retrieve all groups and user from Active directory using client side code in SharePoint Online?

I am not getting domain groups /security groups or groups created in azure using rest Api. Is there any other method or approach to check users from groups in Active directory.
0
votes
0answers
23 views

How to attach files from mobile phone to SharePoint list Item with REST API

I need to upload/attach files from mobile devices to a SharePoint list item. I can upload files from computers but it doesn't work if I do it from my smartphone. Here is my ajax call: $.ajax({ ...
2
votes
0answers
775 views

Reading an excel file from Sharepoint online using REST and the Microsoft Graph API

Is it possible to read an excel file from Sharepoint online using REST and the Microsoft Graph ? I need to retrieve a column field using javascript/Jquery Any feedback will be really appreciated
1
vote
2answers
827 views

SharePoint Rest API : Recent SharePoint Sites

I am currently using the following endpoints to access user specific sites (followed, frequent and suggested) /_vti_bin/homeapi.ashx/sites/followed /_vti_bin/homeapi.ashx/sites/recent /_vti_bin/...
2
votes
1answer
2k views

SharePoint 2013 REST API call Threshold limit

I am fetching data from a list using REST call. I have added filter query in the REST url also the the column on which filter operation id done is set as Indexed column in the list. The no of items ...
0
votes
1answer
1k views

SharePoint API getfilebyserverrelativeurl saying doesn't exist

I have a sharepoint site, let's say http://sharepoint.company.com I'm trying to pull data from sharepoint.company.com/sites/one/sales/retail_locations.aspx when I perform a get request on http://...
0
votes
1answer
2k views

SharePoint REST query select items where column values are not equal

What is the REST query to obtain all items from a list where the value of two different columns for a given item are different. Take the query: http://<site_collection>/_api/web/lists/...
0
votes
0answers
25 views

Access Sharepoint files from external site

I am building a Wordpress website for a client who keeps data in an excel spreadsheet on a sharepoint site, updated regularly. The website needs to be able to access this data when a user visits a ...
0
votes
0answers
14 views

Uploading files using API as another user (on prem, 2019)

I am looking for a confirmation (and at least rough steps) that uploading files via API as another user is possible. Setup info: on premise SharePoint 2019 on premise AD separate web application (...
1
vote
1answer
974 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
12 views

Rest query, get values IN a collection

I would like to get the items whose field A is IN (X,Y,Z...). I've seen ways to do it with ORs (Rest API - $filter multiple values) but is there a simpler way? Something like: /_api/web/lists/...
0
votes
1answer
18 views

Show ageing data and then Email using SharePoint Designer

I have created one Ageing column and one TodayDate column in SharePoint list. I want to update Ageing column with number of days based on difference between last Modified and TodayDate column for ...
0
votes
0answers
25 views

Rest Api Post call in one site collection inside a SharePoint Web Application doesn't work

I have a rest API post-call program to create new items in a SharePoint list. This code works fine in every site collection except one site collection. I am scratching my head without any answer. ...
0
votes
2answers
843 views

How search inside all folders in Document Library

How can I search thought REST API all files in Document Library(DocLib), inside sub-folders included. Let's say I have: Folder 1A Folder 1.1 File A; Folder 2 File AA; File AAA; And I search a ...
0
votes
0answers
20 views

Restore SharePoint regional settings using Rest API

I am using POSTMAN for hitting SharePoint REST APIs. I need to restore the Regional Settings for a site using REST API. I have found the API to GET regional settings which is site-url/_api/web/...
0
votes
1answer
18 views

How can i get status of workflow via rest api - whant to know when its completed,failed etc

Is there a way i can get the status of my running workflow for a particular record? I; working on a form that has a submit button and would like to enable it only when the status of the workflow is ...

1
2 3 4 5
25