Questions tagged [api]

Application Programming Interface (API) is a set of functions and procedures allowing the creation of applications that access the features or data of an operating system, application, or other service. When used as a question tag, please be sure to describe in your question which APIs are being used.

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

TypeError: Cannot read properties of undefined (reading 'post') Posting to Azure web API from SPFX

I hope someone can help me with this. I’m getting error message TypeError: Cannot read properties of undefined (reading 'post'). The Azure function is working fine and is used in other projects.
Kristinn Lindal's user avatar
1 vote
1 answer
32 views

ClientContext API will not return items in Teams SharePoint site, works fine in SharePoint Online

Would there be a difference in using the 'older' SharePoint ClientContext/CSOM based API against a site in SharePoint Online versus one that is a part of a Team? I have a bit of code that works just ...
jmlumpkin's user avatar
  • 141
0 votes
0 answers
21 views

Sharepoint API Fetching 3 times? Instead of 1

I have been facing this issue whereby my sharepoint api is fetching more than once. The function is only being called once BUT it fetches more than once..? Which causes some issue for the displays. ...
Jedi's user avatar
  • 23
1 vote
1 answer
75 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
0 votes
1 answer
15 views

API does not return updated date for calendar event

Situation A user creates calendar events in SPO. We use PowerAutomate to send an email once a week with a listing of the events that will take place in the next two weeks. Problem Sometimes, the date ...
jasotastic's user avatar
0 votes
0 answers
10 views

Is there a client (JS) API for interacting with PWA permissions? Namely, PWA Groups and Categories

We're starting to play around with Project Server (on-prem) using Project Server permission mode (as opposed to SharePoint permission mode). We need to be able to segregate the .mpp files so that ...
Dylan Cristy's user avatar
  • 12.6k
1 vote
0 answers
43 views

Calling HTTP endpoints via On-premises data gateway

I have a requirement to get information from an old legacy system thats on premise. If they have an API that is exposed can I use data gateway and a custom connector? I need to use Power Automate to ...
naijacoder's user avatar
  • 4,272
0 votes
0 answers
16 views

How to find documents about SPO classes and properties, such as the ClientFormCustomFormatter property?

I found the follow PowerShell code. It works. As one of learners of SharePoint Online, I would like to know how to find these new properties and methods for SharePoint Online objects. It appears that ...
SharePointLearnerguys's user avatar
0 votes
0 answers
31 views

How to use http Call or REST enabled API in PowerApps form to do Post Call

I have a PowerApps form. I want to do Post operation through external API call upon one button click over the PowerApps Form. I don't want to use the PowerApps triggered Power Automate for this. So, ...
Kailash Sahoo's user avatar
0 votes
2 answers
118 views

Get a list of files in a sub folder in the Documents Library of Sharepoint site

I am trying to find the best way to get files inside a specific sub folder in the sharepoint website, but the only links I find relate to the root folders. I have a Sharepoint site which is really ...
JMZ's user avatar
  • 1
0 votes
0 answers
34 views

Querying, analyzing, and displaying data from external API in SharePoint

I am a new SharePoint developer and I am tasked with displaying trends in data from Zendesk in SharePoint. I have been reading the Microsoft documentations and from what I have been reading the ...
Gnome-Improvement713's user avatar
0 votes
0 answers
24 views

How to know if I can trust an SPFX webpart?

I am in the process of implementing an spfx webpart but before I need to make sure it is not a security threat. From researching I was not able to find if there is any way to run a check or provide a ...
Santiare's user avatar
0 votes
0 answers
25 views

Problem making 3rd party react API POST calls using SPFx

I am having same issue as posted this in post How to Call 3rd party API using Azure function and display in SharePoint online Site using SPFx?. Did any one find a solution? Here is the sample code: ...
Sruthi's user avatar
  • 1
0 votes
1 answer
383 views

Update SharePoint List item using Rest API in C#

I am writing an API in Web API 2.0 on C# to perform various Actions with SharePoint List items. I have tried the following code to update the Status Column of a List item: HttpWebRequest ...
Alina Anjum's user avatar
0 votes
0 answers
33 views

CRUD actions in a SharePoint MsLists

We are trying to automate some actions, which are now handled manually. The thing we try to achieve is to insert automatically data from a webform into a new MsLists line. For this we need to connect ...
Duikboot's user avatar
  • 101
0 votes
1 answer
731 views

Get Items from SharePoint is raising this error :- "The attempted operation is prohibited because it exceeds the list view threshold."

I have this Get All Items where i define the threshold to be 100,00 as follow:- now on runtime >> i will get this error , any advice how to fix this error? The attempted operation is prohibited ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
161 views

SharePoint API - ItemCount shows something but empty list of files and folders

I'm accessing a SharePoint folder that contains two files and a subfolder. I'm getting back a correct ItemCount but no list of items. Using a made-up path of /sites/sitename/folder1/folder1, and ...
Terminologist's user avatar
0 votes
0 answers
47 views

Accessing the marketplace API in SPFX

There is sufficient documentation on how the Marketplace API can resolve, activate, list,etc subscriptions (here for instance). However, now that I'm forming an understanding of how that works, I ...
JJD's user avatar
  • 493
0 votes
1 answer
543 views

Read large lists with Office365-REST-Python-Client

I am currently trying to read only the last week's entries of a few lists, and I accomplish this by using filter("Modified gt datetime{date_in_isoformat}') or order_by("Modified desc")....
TwoPointNo's user avatar
0 votes
0 answers
30 views

How to write web API to consume SharePoint list data to expose it to other platforms

I need to write a webapi to consume data and doing CRUD operation in SharePoint list.I am little bit confused about how to to that. Please give some suggestions or reference for this one.
user2915027's user avatar
1 vote
1 answer
77 views

How to mark a page as a language copy?

I have a SharePoint Online site, where I need to translate some pages into different target languages. My site's default language is English, thus the source language of a page is always English. The ...
privm's user avatar
  • 23
0 votes
1 answer
112 views

Azure function inside Sharepoint site redirects to login window

I put on a Sharepoint site an ajax request to my azure function. This azure function requires authentication because its logic depends on which user is using my sharepoint site. All users who test my ...
Mike79's user avatar
  • 11
0 votes
1 answer
305 views

Sharepoint Microsoft Graph API limit

I am trying to make a an application that will use the Microsoft graph API to connect to Sharepoint to do various tasks. Recently I have found that there is a throttling/blocking limit for the API, ...
yousif fayed's user avatar
0 votes
1 answer
672 views

CSOM vs PnP Core SDK vs Graph API, which approach is more future proof

We want to start a new project which include creating an azure function (using .net 6.0) that runs on timely basis to create folder structure as follow:- we have a SharePoint custom list which allows ...
John John's user avatar
0 votes
1 answer
350 views

use rest api to search a specific folder inside of shared documents

I have added to the HelloWorld web part starting example to include a search, and I have successfully limited it to my site instead of the entire tenant. const here = this.context.pageContext.web....
Mark's user avatar
  • 101
0 votes
1 answer
461 views

how fix CORS policy when I call an API?

How can I fix this error? I can't call my API from the backend
SiCaMa's user avatar
  • 15
0 votes
1 answer
1k views

403 Forbidden when uploading file to sharepoint using REST API. Permission issue or missing header?

I am new to Sharepoint and REST APIs and am currently having an issue uploading a file using REST API. I am getting error System.UnauthorizedAccessException","message":{"lang":...
ecc07's user avatar
  • 1
0 votes
1 answer
3k views

SharePoint REST API _api/web/currentuser Attempted to perform an unauthorized operation

I'm doing Office365 account-based login functionality through SharePoint on PHP. After doing that I was able to login and get the SPAppToken and SPSiteUrl I use them to get the refreshToken, then I ...
tranthaihoang's user avatar
0 votes
1 answer
213 views

How to create a specific language copy of a page with REST API?

I came across this article, which states that a language copy can be created with an API call like this: POST https://tenant.sharepoint.com/sites/sitename/_api/sitepages/pages(<Source page ID>)/...
privm's user avatar
  • 23
0 votes
1 answer
156 views

Can someone please guide me how to download the release of phpSPO?

I want to retrieve data from sharepoint via API but I can't install phpSPO. Composer method is relatively easy but is very complex for me. So, please share the link so I can download the release and ...
Amir Mureed's user avatar
0 votes
1 answer
550 views

get sharepoint public image using graph api

I want to get a public URL to get the images of a list column using the graph API When using the sharepoint REST API I could do it this way: https://mysite.sharepoint.com/sites/namesite/_api/web/lists/...
shadowsa7x07's user avatar
0 votes
0 answers
45 views

How do I set a person or group field via the API V1 using Rails with Faraday?

I've seen several similar questions and the crux of the answer seems to be that I should add "Id" to the field name and pass the user's id. Here for instance: How to update "Person or ...
Matt Jordan's user avatar
0 votes
1 answer
197 views

SharePoint Online Managed Path

Does anyone know how to get this information through rest API or PowerShell? I wanted to know if the tenant I am working with is using "/teams/" or "/sites/". I am creating an ...
Billy P's user avatar
  • 236
0 votes
0 answers
19 views

SharePoint 2019 Production farm started having struggle load Font File/Random PNG File/Random API call

We have a SharePoint Farm (7 WFEs and 1 DB), last code deployment was weeks ago. Since Friday, when we load the web portal that is hosted on the farm via browser and via any location (worldwide), ...
Tasos's user avatar
  • 101
0 votes
0 answers
82 views

Get thumbnailRenderer on all rest api responses?

I have a list with a column of images, I always want to get the thumbnailRenderer parameter in the sharepoint rest api response sometimes i get. my query is: https://testttr.sharepoint.com/sites/...
shadowsa7x07's user avatar
0 votes
1 answer
1k views

Is there a way to export a list as a csv file with the Rest API?

Via the user interface in Sharepoint there is the possibility to export a list as .csv. Unfortunately, you can only load the items from the list via the Rest API, but not download the entire list as a ...
Vincent Jobs 's user avatar
1 vote
1 answer
345 views

Ajax call to SharePoint API returns '403 - Forbidden'

I need to access data on a SharePoint Online site from a php application. I'm using SharePoint API with JavaScript trying to achieve this. I already succeeded in accessing the SharePoint site with ...
Emmanuel Ingelaere's user avatar
0 votes
1 answer
120 views

Listing all sub-sites that you have access to in a site collection

In my situation, I have a site collection `/sites/mysitecol` - site collection - `/sites/mysitecol/test1` - sub-site - my user has access to this site. - `/sites/mysitecol/test2` - sub-site - my ...
Nicholas DiPiazza's user avatar
1 vote
2 answers
2k views

Incorrect API Endpoint URL

I'm very VERY new to SharePoint and am currently working on a project with needs a react SPFx Web Part to be developed which can be put on any site/page to read data from Document Libraries. However, ...
Bentura's user avatar
  • 39
0 votes
2 answers
158 views

Which columns are being returned from an AJAX call?

I know the names of some columns - FirstName, LastName, JobTitle, SAMAccountName, Department that an API serves out but I would like to know all the columns that are returned. How do I find out the ...
Pete Whelan's user avatar
1 vote
1 answer
91 views

Access files via autogenerated ID through REST API

what I'm currently doing is accessing the files in my Document Library through the REST API like this: [baseURL]/_api/Web/GetFileByServerRelativeUrl('[relativeURL]'). To collect these relativeURLs, I ...
nanoxid's user avatar
  • 13
0 votes
1 answer
77 views

Grant permission to a sharpoint-online subsite

I'd like to grant permission to a subsite of sharepoint-online using the Sharepoint API. The subsite is created using the following parameters (I was using Power Automate - but in the end it is a API ...
Christoph's user avatar
  • 101
0 votes
1 answer
311 views

How to get the page count of a PDF document stored in sharepoint through REST API?

From a salesforce site, we want to retrieve the page count of pdf documents stored in a SharePoint site, How to get this through REST or some alternative way?
Akshay Poddar's user avatar
1 vote
2 answers
5k views

List all the members of SharePoint groups with Graph API

Is there any endpoint in the Microsoft Graph API fore SharePoint Online to list all the groups and members of SharePoint groups? It must also be possible to manage the users from those groups. As ...
H. Pauwelyn's user avatar
0 votes
1 answer
910 views

Help with post request from SPFx secured by AD

https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi < I have a few GET requests working in my SPFx app, but the guide here doesen't show you how to do a POST ...
BennKingy's user avatar
  • 436
0 votes
1 answer
175 views

REST API: upload a file to a Docset

Similar to this (Upload multiple files using rest api) I want to upload files to an existing Docset. I am using the pure REST API as I am on Java. I asked myself, how to control where the uploaded ...
Oliver Busse's user avatar
0 votes
1 answer
539 views

Using Send an HTTP request to SharePoint to send requests to Non-SharePoint sits

I was really surprised that the Send an HTTP request to SharePoint action in Power Automate can be used to send requests to https://presence.teams.microsoft.com: I was really intregued to try it ...
Denis Molodtsov's user avatar
0 votes
1 answer
144 views

How do I create a page in SharePoint and manage its content?

I would like to set up a system for deploying content into a SharePoint (O365) site using C# code. I would be reading text files in Markdown format and either converting them into HTML for publishing, ...
Mark's user avatar
  • 101
1 vote
0 answers
180 views

Manipulate sharepoint group membership using REST API from external app

I have an application that is secured via OpenID Connect / Azure AD. It is a webapp that is not running as part of the Sharepoint Framework. However, the app does need to interact with SharePoint in ...
ddewaele's user avatar
  • 111
0 votes
1 answer
59 views

Send email to users with expired documents

I want to be able to send email to each user which has expired documents and be able to know when the expiry date email was sent. The item contains worker name, their expiry date, and the heading of '...
user7878's user avatar

1
2 3 4 5 6