Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 views

Trying to create a new property via REST API

My SharePoint buddy has created a new property in a SharePoint Online site for me called IsArchived. I can query that property using this REST API call: GET https://mycompany.sharepoint.com/sites/...
marc_s's user avatar
  • 101
0 votes
0 answers
15 views

How to call an external Api for prayer timings from SharePoint OnPremise(2019)

I want PrayerTimings API to be called on Page load. I am using SharePoint 2019. When I use the API inside the server is not getting called. I am injecting the 'Prayertime.js' file using my SPFx ...
Aparna Sunil's user avatar
0 votes
0 answers
14 views

Power Automate HTTP request to get groups and permission levels associated with them

I am using the HTTP request in power automate below to get a list of permissions groups for my site. In addition I would like to get the groups permission level / role id by name. How could this be ...
Kirsten's user avatar
2 votes
1 answer
51 views

Issue Fetching DisplayName Column Data from SharePoint List via REST API

I am facing an issue while attempting to retrieve data from a SharePoint list using the REST API. The list contains a single line of text column named "DisplayName". However, when making a ...
Dhruvil Prajapati's user avatar
0 votes
0 answers
46 views

How to query all values for a SP.Taxonomy.TaxonomyFieldValue type using the SharePoint REST API v1?

I need to query custom metadata properties for quite a lot of items from an on-premise SharePoint server. Therefore, I do want to work with a list, as shown in the article Working with lists and list ...
Florian Wolters's user avatar
0 votes
0 answers
12 views

File Version Custom Fields

I'm trying to use the sharepoint rest api to get the file version history but also the custom fields on those versions. I tried to do expand on ListItemAllFields, FieldValuesAsText and ...
samsal's user avatar
  • 1
1 vote
2 answers
42 views

How Can I Use Site ID To Make API Calls?

Problem I'd like to use the SharePoint API (cannot be the Graph API) to get information from site resources, and I would like to do this in one call to avoid problems with URL changes to the site in ...
influentialeliot's user avatar
0 votes
1 answer
64 views

how to upload a file to a document library using OData in PowerShell with curl or Invoke-RestMethod

As I cannot use Pnp.PowerShell with a SharePoint-2019 on premise, AFAIK, I've been trying workd with OData instead, using curl (or PowerShell Invoke-RestMethod or falling back to JavaScript fetch if ...
jgran's user avatar
  • 13
0 votes
0 answers
15 views

Graph query: is it possible to retrieve a RefinableStrings or Set of terms starting from a list column name?

As stated in the question title, if I have a column in a SharePoint list named "Category", and associated it to a Refinable String, let's say RefinableString03, is it possible to retrieve ...
caneta's user avatar
  • 103
0 votes
2 answers
32 views

REST Call Returns Tons of Unnecessary Metadata. How do I Just Get the Column Values?

I want to get the values stored in my List. Is there a way to make a call that only returns a string like: [ item1 [ID, Title ...] ,item2 [ID, Title ...] ,item3 [ID, Title ...] ... ] When I make ...
amsackett's user avatar
  • 379
0 votes
0 answers
30 views

Error using Sharepoint REST API call to add permissions

I have an odd issue. I have an integration that is doing lots of REST calls to SHarePoint all of which work fine, except for 2, setting permissions and creating libaries. The commands I'm using a ...
Andrew Jones's user avatar
0 votes
1 answer
46 views

Rest API SharePoint 2019 Endpoint for List Settings

I am looking for a SharePoint 2013/2019 API endpoint to get access to List Settings, including Advanced Settings. Any help is welcome.
ChasEpes's user avatar
  • 109
0 votes
0 answers
41 views

How to Get the absolute url of a SharePoint library file

I have this current link with me: https://demo.com/:b:/s/sites/EXhKcRUvGA9NlAIi0BMMfdCFHNVxtTvA7lYEwj0g?e=SS3ym2 How to get the absolute URL of a SharePoint library file using URL like below? I want ...
Hàn Vũ's user avatar
0 votes
1 answer
57 views

How to get the site's html in SharePoint?

I want to use REST API to get the site's HTML in SharePoint. For example: https://demo.sharepoint.com/sites/siteDemo. Can I do it?
Hàn Vũ's user avatar
0 votes
0 answers
13 views

Creating and modifying pages with the REST API

I would like to be able to modify and/or create pages dynamically using Power Automate flows. I assume I must use the SharePoint HTTP action, which interfaces with the SharePoint REST API. There is ...
Aidan Meyer's user avatar
2 votes
1 answer
35 views

SharePoint Online Filter By URL

I am working with the SharePoint API and trying to filter search results based on specific URLs. Currently, I have the following search query: http://www.test.com/_api/search/query?querytext=%27Hello%...
Jedi's user avatar
  • 23
0 votes
0 answers
15 views

UpdateFormDigest not always working [duplicate]

We have a SharePoint Online site with a list (called PEP) where the EditForm is in classic SharePoint and customised with a WebPart that loads an HTML file witch itself loads some JavaScript code. ...
Mathieu's user avatar
0 votes
1 answer
29 views

How to get published version of site pages in SharePoint online

Is there any way to get the all site pages last published version using rest api camlquery. Thank you in advance
Dev Joshi's user avatar
0 votes
1 answer
35 views

How to retrieve Listitem(selective columns) Sharepoint Online RestApi using Python

I possess ClientId and Secret key now to fetch the data from Listitem in Sharepoint Online(Rest Api) usint Python Office365 package. How to retrieve only selected columns from it? do I need to ...
preethi dhilipan's user avatar
0 votes
1 answer
25 views

REST: addUsingPath not supported in SharePoint 2016?

I run this in the browser: https://my.company.com/sites/news/_api/web/folders/addUsingPath(DecodedUrl='%2Fsites%2Fjnews%2Frufus%2Fholla',overwrite=false) and get: Cannot find resource for the request ...
Juergen Riemer's user avatar
0 votes
2 answers
47 views

How to find the home page of a site? I want to use the Rest API OR the classic interface

My site has many pages, I want to know the homepage of the site, is there any way? I want to use REST API OR the classic interface.
Hàn Vũ's user avatar
0 votes
1 answer
48 views

Searching a SharePoint Library for attribute value from XML document

I'm trying to search within XML files in a document library for a search term but i'm not getting the results. For example if I search for 'title' or 'paragraph' it finds the file but NOT if I search ...
Dave G's user avatar
  • 1
1 vote
2 answers
82 views

How to configure a custom list form header using SharePoint Rest API

How to configure a custom list form header using SharePoint Rest API? It can be done using GUI : Configure custom header but I am interested in doing the same using Rest API calls from a flow.
imrago's user avatar
  • 13
0 votes
1 answer
34 views

SharePoint Rest API: MoveViewFieldTo syntax error

I am trying to move a field in a listview but I am getting the "invalid" error below. I'm using Alteryx, so the setup is not like a normal JS script. I have used moveViewFieldTo but I have ...
ChasEpes's user avatar
  • 109
0 votes
1 answer
83 views

SP 2013 REST API: set list view column order

I have a list view in which I need to change the column order every quarter of the year. Is there a method using rest API to set all my visible columns to a specific order, and then add a new one and ...
ChasEpes's user avatar
  • 109
0 votes
1 answer
77 views

Sharepoint REST api HTTP Error 403: Forbidden getting versions

I'm able to get the value of the file: url = sharepoint_app_url + "_api/web/GetFileByServerRelativeUrl('" + file_path + "')/$value" However when I want to get the versions or a ...
Maroun Sassine's user avatar
1 vote
1 answer
85 views

Azure ACS retirement in Microsoft 365 - legacy SharePoint REST API impacted?

According to https://learn.microsoft.com/en-us/sharepoint/dev/sp-add-ins/retirement-announcement-for-azure-acs: Azure ACS will stop working for new tenants as of November 1st, 2024 and it will stop ...
Alex Filipovici's user avatar
1 vote
1 answer
30 views

I want to retrieve SharePoint report using API & JSON. For example for getting the number of Applications between a set time period from list

I need to generate or retrieve report from a SharePoint list using API endpoint. I believe we can request it in JSON by setting the Request headers to "Accept", "application/json; odata=...
Gothaam's user avatar
  • 11
0 votes
0 answers
24 views

Sharepoint Online - REST Call takes almost one minute to complete

API Call to get all documents to display them in custom list takes about 55 sec to complete and it's irritating to customer that everytime they have to wait such period. I'm interested into why and ...
private7's user avatar
  • 125
0 votes
2 answers
313 views

SharePoint online Image item URL does not get url in target Release for Everyone

I have tried to get image URL using rest Api and PnP js in my SPFx react solution but not get proper image URL from Api response. Below is the code and response from the Api. Missing serverRelativeUrl ...
Chandresh's user avatar
  • 499
0 votes
1 answer
93 views

How i can get the Principle ID of an Office 365 security group

I have an Office 365 security group (without email), and i want to add it to an Item permission, where the built-in action "Grant access to item or folder" will not work, as it only accept ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
121 views

Check if user belongs to a SharePoint group using REST API via OData

I am currently trying to write a OData query to determine if the current user belongs to a particular SharePoint group on SharePoint 2019 Server. Solution #1: Retrieve the user's groups, then ...
thebernardlim's user avatar
0 votes
1 answer
22 views

Retrieve HasUniqueRoleAssigments value from a List Item in a SharePoint 2013 Designer Workflow

I'm trying to retrieve the value of 'HasUniqueRoleAssignements' from a list item in a SharePoint 2013 Designer workflow. My request url is: [%Workflow Context:Current Site URL%]/_api/lists/getbytitle(...
Rogerb's user avatar
  • 21
1 vote
1 answer
233 views

Can i get content OR download file by GUID?

I want to get content OR download file by GUID. I can work when use APIs below to get ServerRelativeUrl and use which to download file. But I must call three API: https://your-site/_api/web/lists/...
Hàn Vũ's user avatar
1 vote
0 answers
36 views

Full searchable-index. How to to extract into readable version

I would like to extract the searchable index of selected sites from the intranet (sharepoint server 2016). I have a target to create custom search using vectorstore where I need to have full SHP2016 ...
sebikooo's user avatar
1 vote
1 answer
80 views

Setting the default page template through Rest API

I'm creating a Power Automate flow with which among other things I would like to set the default page template in a newly created site. I have the whole site creation part done, as well as retrieving ...
Kees Huizer's user avatar
1 vote
0 answers
287 views

How to get all files and folders on a SharePoint site, using office 365 REST API for python?

I want to automate downloading all the documents in multiple SharePoint sites with python, so I want a way to get all folders and files in a "Shared Documents" library in SharePoint sites. ...
Ihab's user avatar
  • 11
0 votes
0 answers
19 views

How to get a Video Thumbnail using PowerShell on SharePoint SE version?

I have a SharePoint (Subscription Edition) document library that is hosting some videos I uploaded. How can I get the video thumbnails using PowerShell? Again, the SharePoint version I am targeting is ...
Jean Paul Larach's user avatar
0 votes
1 answer
261 views

Attempted to perform an unauthorized operation - Get List items API - Postman

I have just created an App in Azure Portal by following this Article. I have followed the following Steps: Registered App in Azure AD Get the Client ID and Secret from the Registered App Created API ...
Alina Anjum's user avatar
1 vote
1 answer
10 views

Filtering SP List using created

I want to filter the SP list using created date so that list items created in last 8 days get displayed. I am using: private getCarouselListContent = () => { try { let requestUrl = `${...
KIRTI JAISWAL's user avatar
0 votes
2 answers
189 views

Setting a SharePoint Online's site "Title" property using the REST API?

I'm trying to set a SharePoint site's Title through the SharePoint REST API using C# code. When I get the site's web data using: GET http://mycompany.sharepoint.com/sites/site-url/_api/web/ I get a ...
marc_s's user avatar
  • 101
0 votes
0 answers
17 views

Filtering Large list (>5000) with two columns with or condition not working

I'm trying to use the below URI to retrieve items from a SharePoint Online list. https://Site/_api/lists/getbytitle('listName')/items?$select=Id&$filter=(column1 eq 1 or column2 eq 1)&$top=...
Robin Roy's user avatar
0 votes
0 answers
37 views

REST filtering large list by lookup field value

Is it possible to search in large list by lookup filed value with 'substringof' like: _api/web/lists/getbytitle('Obchodné Prípady')/items?$select=*,Investor/Title&$expand=Investor/ID&$top=100&...
Bálint's user avatar
  • 341
0 votes
0 answers
28 views

Add all the content type columns as indexes inside a Document library

I have this flow which do those main 3 actions:- Create a new Document library Add a custom content type Remove the built-in Document content type now i want to get all the fields inside the ...
microsoftdeveloperdesigner's user avatar
0 votes
2 answers
384 views

How to get the graph site ID of the current using V2.0 REST Endpoint?

I'd like to perform some operations that are only available using the GRAPH Api (adding content from the content type hub for example). But I'm in a context where I can only perform operations using ...
Steve B's user avatar
  • 7,488
0 votes
0 answers
50 views

Remove the Document default content type from a new document library using Rest API will raise this error "Cannot find resource for the request"

I have a workflow which creates a new document library, then add a custom content type and remove the document content type. but it is failing when trying to remove the Document content type:- Cannot ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
129 views

How to set app-only permissions to a list with Graph?

In the GUI I can give an app access to a specific list via the /_layouts/15/appinv.aspx How do I do this with Graph API or the SharePoint REST API? I did some research, but so far I only found ...
vilmarci's user avatar
  • 906
0 votes
0 answers
34 views

SharePoint Rest API - Mentioned users in a custom list item's comments are not being displayed correctly

Steps to reproduce: Add a custom list item in SharePoint. Make a comment to the list item and mention a user or users in the comment. Make a request to the Rest API. We get the following response in ...
XRM-Merge1's user avatar
0 votes
1 answer
49 views

Display more than one data table in one SharePoint page

Is there anyway of display more than one data table from different lists in the same page? Instead I get the following error: DataTables warning: table id=Employee - Cannot reinitialize DataTable. ...
Bra Tabs's user avatar
1 vote
1 answer
94 views

While I fetch site pages(.aspx) on sub sites using graph.microsoft.com/beta/sites/{subsite-id}/page it returns empty value

I have a question: Why get site pages(.aspx) on sub sites using graph.microsoft.com/beta/sites/{subsite-id}/page return value is empty, While I used with graph.microsoft.com/beta/sites/{site-id} can ...
Hàn Vũ's user avatar

1
2 3 4 5
36