Skip to main content

Questions tagged [sharepoint-rest-api]

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

Filter by
Sorted by
Tagged with
0 votes
1 answer
13 views

SP2019 API - Reference for complete List and Library Item Properties

I am looking for a complete reference source (URL) for all the SP2019 List and Library & File properties that can be used with API endpoint operators (select, filter, etc.).
ChasEpes's user avatar
  • 113
0 votes
1 answer
18 views

SP2019 Rest API: Syntax to retreive two properties

I am having trouble retrieving both the File name and the File size (FileLeafRef,File/Length) in the same API results. The endpoint below only displays the File Name. I welcome advice on correcting my ...
ChasEpes's user avatar
  • 113
0 votes
0 answers
11 views

Thumbnail not showing on newly created news Page via API

I'm very new at working with SharePoint, however I was tasked with setting up a News feed for my intranet site My solution uses Power Automate I set up an RSS feed to pull from, then I take the ...
Sam's user avatar
  • 1
0 votes
1 answer
10 views

how to filter lists by content type using Rest API on SharePoint Subscription Edition?

Is there a way to retrieve lists filtered by content type? The rest api below does not work: /_api/Web/lists?$select=ContentTypes/Name&$expand=ContentTypes&$filter=ContentType eq 'Message' ...
Burre Ifort's user avatar
  • 1,339
1 vote
2 answers
35 views

Hyperlink column with icon instead of text in a classic SharePoint list

I created a Power Automate Flow that uses the SharePoint connecter, "Send HTTP request" to create a custom hyperlink using a dynamic list value. I'd like to use an image or icon instead of a ...
Marie's user avatar
  • 11
1 vote
1 answer
35 views

Only get part of the SharePoint list with JavaScript Fetch

I have a problem with getting all SP list item (257 currently) with fetch. I have the following code: var tasks = new Request( webUrl + "/_api/web/lists/GetByTitle('" + listName + &...
Lokids's user avatar
  • 13
0 votes
0 answers
37 views

Graph API to filter by multi-choice person column (SharePoint)?

How to filter by a multi-choice person column's Email (SharePoint)? I tried this format by referring to Graph filter method, and it's not working &$filter=fields/RequestorDetails/any(x:x eq 'name2@...
kartrabby's user avatar
0 votes
0 answers
10 views

Update Target Audience from Node.js - Sharepoint Server 2019

I am trying to write a function that can apply target audience from within a node js application. I am working with SharePoint Server 2019. This Audience column is a special type and I have to query ...
Jayman McAllister's user avatar
0 votes
0 answers
15 views

_api/SP.Utilities.Utility.SendEmail Failed to load resource: the server responded with a status of 404 (Not Found)

Good day everyone, I have an issue when i try to use _api/SP.Utilities.Utility.SendEmail at SP2019 and shows this message: {"readyState":4,"responseText":"","status&...
AMSH's user avatar
  • 1
0 votes
0 answers
12 views

SharePoint Rest API for uploading file and metadata from ASP.NET

I am using below code for uploading document with metadata from asp.net application to SharePoint 2019 on-premises. but getting 403 forbidden/401 unauthorized error user account has full access on ...
Kavita2023's user avatar
0 votes
0 answers
9 views

Resturn results items by sorting by nearest location

I got managed properties crawled (in sp2016) of the Lat and Long coordinates of our offices location. I trying to het the nearest location to given coordinates by using rest api query. I using ...
Adleron's user avatar
  • 53
1 vote
1 answer
33 views

REST API filter by date giving "The expression is not valid"

I am trying to get a list of old files from our SharePoint online site via REST API but keep getting error: "The expression is not valid" I tried the following links with same error: https:...
user3154163's user avatar
0 votes
0 answers
17 views

Using an SPFx Application Customizer in SharePoint 2019 on-prem to display SharePoint List Data

I am struggling to put the final step of this project together successfully. I can create banners and display static information that is able to be deployed successfully, however when I try and add ...
Alexander Lange's user avatar
0 votes
0 answers
25 views

How to send an email with the SharePoint API to multiple users with a different body for each one?

We're tracking emails that we send using the SharePoint API. What we're doing is adding a transparent pixel that's hosted on our server, and the request tells us that the emails was opened. We want to ...
MarksASP's user avatar
  • 101
0 votes
0 answers
12 views

How to properly filter by custom metadata (GetItems with POST does not behave as Items with GET) using REST API v1?

I'd like to search for items in a SharePoint list by their custom metadata values or in other words filter a SharePoint list by specifying values for custom metadata fields. Searching the internet two ...
Florian Wolters's user avatar
0 votes
0 answers
23 views

Metadata / schemas for HtmlContent1

I am struggling to find an official schema/metadata/EDMX description of the data contained in a SharePoint page's HtmlContent1 or JsonContent1, for example: { "controlType": 4, "...
Jonathan's user avatar
0 votes
0 answers
32 views

Build JSON array in the request body in SharePoint Designer 2013

Below is the request body which I wish to use POST method with call HTTP web service action: { "fields": { "project": { "key": "key-content" ...
James Chou's user avatar
0 votes
1 answer
34 views

Creating SharePoint folder with "title" property via Boomi

How would I populate the "title" property of a SharePoint folder when creating the folder via Boomi (with an HTTP request)? I can't seem to find the full JSON to do this. This is all I have ...
Paul S.'s user avatar
0 votes
0 answers
21 views

POST drop down custom column selected value into SharePoint list

I have build a custom drop down field using HTML, the values in dropdown choice are coming from SharePoint list using GET API. I also added button with name "AddItem" in front of dropdown so ...
Sourav's user avatar
  • 1
0 votes
0 answers
17 views

Sending data entry to SharePoint list from HTML custom people picker column

I have built a custom people picker field with submit button in SharePoint webpart. The people picker field is rendering people from SharePoint. Now, I want when I select a particular user in people ...
Sourav's user avatar
  • 1
0 votes
0 answers
18 views

The REST API endpoint /items(<itemId>) returns data.d undefined

Trying to get value of Message column from the 1st list item in GreetMe list: function getMessage() { var requesturi = _spPageContextInfo.webAbsoluteUrl + "/_api/web/lists/getbytitle('GreetMe')/...
MWAN001's user avatar
0 votes
0 answers
49 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
21 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
46 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
93 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
110 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
15 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
200 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
172 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
39 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
33 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
99 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
96 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
  • 113
0 votes
0 answers
86 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
170 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
20 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
65 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
94 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
137 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
37 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
168 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
59 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
186 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
40 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
  • 113
0 votes
1 answer
123 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
  • 113
0 votes
1 answer
166 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
138 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
61 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
26 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

1
2 3 4 5
36