Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0
votes
1answer
23 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 ...
2
votes
1answer
20 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.
0
votes
0answers
18 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 ...
1
vote
1answer
26 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
14 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/...
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 ...
1
vote
3answers
19 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 ...
1
vote
1answer
30 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
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
0answers
13 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
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
1answer
8 views

How to get REST API followed

How to get followed items using REST API (C# and JS)?
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

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
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 ...
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
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 ...
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
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 $...
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
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 ...
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({ ...
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 (...
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
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
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
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 ...
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....
0
votes
0answers
16 views

Ajax POST requests limits

Is there any limitation in sending a certain amount of jquery ajax calls (POST requests) to a Sharepoint 2013 list? These requests has to be sent in a loop and are meant to update the metadata of ...
0
votes
0answers
17 views

save conflict error when performing an update with rest api when in edit mode

I'm getting a save conflict error on edit mode. In Edit mode on a list sharepoint page . I have an update operation that triggers as soon as you open the edit mode. So as soon as i try to hit save ...
1
vote
0answers
32 views

SharePoint API search query ignoring “SelectProperties” parameter

I am submitting a request to the search API to return all people whose last name begins with a specified string. I ONLY want their "PreferredName" and "JobTitle" properties; however, while SharePoint ...
0
votes
1answer
72 views

Update/Add choices of a Choice field of SharePoint list using REST API

I want to update the options of the Choice field of the SharePoint List. Is there any way to update the choices using the REST API? Below is the code i am using: $.ajax({ url: "https://ts....
1
vote
0answers
16 views

how to read sharepoint list items status and update in another list

**List A** ID Color UpdateStatus 111 black 222 red **List B** LookuptoID(List A) status 111 Not started 111 Not started 111 In progress ...
1
vote
1answer
18 views

In a SPFx web part, how can I get description and Url from a SP.FieldUrlValue?

I have a SharePoint list with a Link column of type Hyperlink or Picture. How do I access the description and url values in code? export interface ISPList { Title: string; Link: object; } ...
0
votes
2answers
27 views

Corrupt or blank file when downloaded from Sharepoint using rest API ajax call javascript

I am trying to download a file from Sharepoing using ajax call from html page. I am able to upload successfully but when I try to download a file, in case of text file, the download is successfull and ...
0
votes
1answer
29 views

SharePoint follow documents Rest API not working

I have been using SharePoint online rest end point to get users followed documents. The end point is {sitepath}/_api/social.following/my/followed(types=2) I was able to get follow docs in the ...
0
votes
0answers
18 views

Share Object method child items - Sharepoint rest api

I'm using the SP.Web.ShareObject method to grant access to a folder for an external user and it works ok, but the user can't see the files inside this folder. Here's the body of my call : { "url":"...
1
vote
1answer
28 views

Best way to update all the items in a Sharepoint 2013 Document Library through REST API

In a web application I am rendering a list of documents coming from a Sharepoint 2013 Document Library (the number of documents can vary, approximately, from 5 to 50). The user needs to be able to ...
0
votes
1answer
14 views

Solution to replace InfoPath Form for SharePoint submission

I need to replace an InfoPath form that has multiple repeating tables and repeating date fields, has the ability to create revisions while keeping older version data. We dont have access to microsoft ...
0
votes
1answer
24 views

Unable to fetch lookup field values using REST api

I am using REST api to fetch data from a SharePoint list. I am able to get data using this query: requestUri = "/_api/lists/GetByTitle('Data')/items?$select=ID,Title,Department/Title&$expand=...
0
votes
0answers
9 views

REST API threshold error in Designer Workflow but works on a page using Javascript

Note: My Document Library has 5500 items (threshold limit is 5000. So it already crossed the threshold limit). I am trying to get the ID of a folder using rest API in SharePoint designer workflow ...
0
votes
1answer
23 views

Sharepoint Rest Api ShareObject method

I want to share a file/folder with users through a rest call. The Sharing permission of the site has already been set. I found out about SP.Web.ShareObject method but I'm getting a "Couldn't resolve ...
0
votes
0answers
19 views

How to download rendered content of *.aspx SitePage using SharePoint Online Rest API

We are trying to download rendered content of SitePages ( relativeURL: /SitePages/fileName.aspx) But we are getting non rendered content; We need help to achieve the same; Also, When we try to ...
0
votes
2answers
22 views

Unble to Test Graphapi in postman

I am working on graph api and able to test few thing graphapi and Postman but few of them not working in postman same query is working in Graphapi explorer and please find the below attached screens ...
0
votes
0answers
8 views

Version History's meta data is missing after moving the document to another library

I want to move document from one library to another libray along with the version hostory and versions history's metadata using SharePoint designer workflow. I am using call HTTP service and below is ...

1
2 3 4 5
25