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
2 answers
203 views

Azure Sharepoint Application API Key generation

Introduction I'm not a Sharepoint developer. I'm attempting to build an API from a php application to talk to the file storage within a Sharepoint site. From what I can The RESTful API makes the most ...
1 vote
1 answer
44 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 ...
0 votes
0 answers
9 views

How can we send timesheet for approval in Project Online - Rest api [closed]

I am creating a powerapps application which is integrated with Project Online. I want to know is there any api available for submitting the timesheet for approval.
2 votes
1 answer
1k views

Using html2Canvas API to generate images of custom aspx pages

So I have an html table I'd like to convert to an image and I found a pretty neat API to do exactly this. It's called html2canvas. I have been able to use it pretty easily using HTML pages in my ...
2 votes
2 answers
2k views

MS Graph presence - forbidden 403 error

I'm getting 403 forbidden error in my SPFx web part when trying to access Teams presence (mine and other users as well). I have set permissions in package-solution: Permissions: { "resource": "...
0 votes
1 answer
2k views

Sharepoint PHP File Upload

I'm new to Sharepoint integration. I'm hoping to get some answers and direction for the script. The current process requires an XML file to be uploaded into a library, from a separate website. My ...
0 votes
0 answers
4 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 ...
0 votes
0 answers
6 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 ...
0 votes
1 answer
1k views

Failed to Fetch Error while calling Azure Function

I am calling an Azure Function which is publicly accessible from my SPFx web part. It is a POST Request and I am getting a Failed to Fetch error. The same API call is working fine if I execute it from ...
1 vote
2 answers
1k views

Problem making 3rd party API POST calls using SPFx

I need to fetch few details from the 3rd party API so I am making a POST request (required by the API) to that API using HttpClient But every time I am getting the below error. Access to fetch at '...
1 vote
0 answers
26 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 ...
1 vote
2 answers
8k views

Is there any way to overcome URL length limitation in REST API "GET" Requests?

Is there any way to overcome the 2083 characters limit using REST API GET request itself.
0 votes
1 answer
3k views

Fetch User Details from Person Or Group Field Using REST API

I was trying to retrieve user WorkPhone from a people and group field but its throwing error saying The query to field 'Application/WorkPhone' is not valid. But I tried the same query for the ...
0 votes
1 answer
263 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 ...
0 votes
1 answer
2k views

How to create multiple fields with their datatypes using REST API?

According to MSDN, we can create field like below.. $.ajax({ url: "http://<site url>/_api/web/lists(guid'da58632f-faf0-4a78-8219-99c307747741') /fields", type: "POST", data: "{ '...
0 votes
2 answers
4k views

Sharepoint 2013: simple api call not working

[site name]_api/web/lists/GetByTitle(‘ListName’)/items So why does this not work? All the examples I see indicate that it should work. <m:error xmlns:m="http://schemas.microsoft.com/ado/2007/08/...
0 votes
1 answer
4k views

SharePoint 2010 file upload via REST api

I am developing application that access files on SharePoint 2010 via REST API I referenced this link, so I made it download and get metadata for documents. But, While I am trying upload file, I can'...
0 votes
2 answers
42 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 ...
0 votes
0 answers
14 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 ...
0 votes
0 answers
19 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, ...
3 votes
1 answer
1k views

Handling The SharePoint REST API Search Threshold Limit In powershell

We are using SharePoint Online. I would like to search in all sitecollections for the word "passport". I make it working with the REST api in powershell. But I have now only the problem that it ...
11 votes
2 answers
6k views

The remote server returned an error: (403) Forbidden when accessing office365 site through external APIs

We have built a desktop app that import/exports SharePoint lists into/from Office 365 sites. The app works perfectly, and we were able to do the import/export of Office 365 site pages for many clients ...
0 votes
0 answers
31 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 ...
0 votes
0 answers
22 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 ...
2 votes
2 answers
4k views

Create an item with REST API from workflow - SharePoint 2013

The main idea of this is to create an item from workflow in another list which is located on different site collection. So I thought is it possible to create an item in list with REST API through the ...
0 votes
0 answers
18 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: ...
1 vote
3 answers
3k views

Rest Api Filter on Number Field Starts with

On SharePoint 2013 On Premise, I need rest api filter where I can search some numbers in list starts with. Since records are around 100,000 I can not display all. Hence need a kind of search function.
0 votes
1 answer
6k views

Managing Content Type using REST API

How can i manage Content Type in SharePoint List using REST API, it's look like a very wide question, isn't it ? well what i'm looking for exactly is: How to change content type visibility option to ...
0 votes
1 answer
2k views

How can I make a GET request with Headers to an external API?

From a SP Online SPFx Web Part (No Javascript Framework), I've been trying to do a GET request to an API that expects some headers and nothing works. If use Postman, with the same URL and Headers it ...
0 votes
1 answer
1k views

Adding blog post item category with REST API Sharepoint 2013

I want to insert a billet item list with related category ID in REST API Sharepoint. I proceeded as follows: POST /_api/lists/getbytitle('Billets')/items { "__metadata": { "type": "SP.Data....
1 vote
1 answer
1k views

REST API return encoded Multiline Textfield but show it correctly

I save a JSON string in my SharePoint list. This looks like: {"columns":[{"name":"A","visible":true,"width":200,"sort":{},"filters":[{}],"pinned":"left"},{"name":"B","visible":false,"width":150,"sort"...
1 vote
1 answer
3k views

Rest queries on ProjectOnline should use _API/ProjectData or _API/ProjectServer?

I've been trying to identify what is the correct way to get data from Project Online for some time now (I just want to get data, not update it). I can find documentation on ProjectData and a lot of ...
1 vote
2 answers
3k views

Sharepoint REST API: Get filtered results of files in a document library subfolder and sub-subfolders

Let’s say I have a Document Library “Documents” with structured folders like this: - Folder1(ID1) - SubfolderA(ID3) file-1-in-SubFolderA(ID4).txt file-2-in-SubFolderA(ID5)...
0 votes
1 answer
2k views

Use REST API to like or rate a SharePoint List Item

i would like to rate items via rest API. and i would like get user specific ratings. so if the user rated an item with 5 stars i want to see 5 stars somewhere in XML from rest API. By default i ...
0 votes
1 answer
1k views

Trying to delete SharePoint folder using API

I'm following this https://docs.microsoft.com/en-us/sharepoint/dev/sp-add-ins/working-with-folders-and-files-with-rest to try and delete a folder in a SharePoint library. I'm writing a c# console app ...
0 votes
2 answers
2k views

Remove all files using REST

Is there a way I could remove all files from given folder using SharePoint REST api?
0 votes
1 answer
92 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 ...
0 votes
0 answers
25 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 ...
0 votes
1 answer
423 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 ...
0 votes
0 answers
34 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 ...
2 votes
2 answers
1k views

Upload files with REST or alternatives

I need some help with Server to Server upload. (not from the browser) Has anyone uploaded files to sharepoint 2013, using REST, or other methods from a server (java/coldfusion/other). I am getting a ...
1 vote
2 answers
4k 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 ...
0 votes
1 answer
420 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")....
0 votes
2 answers
237 views

sharepoint API rest custom column http 400

I have a list in sharepoint, where I have put the totals of the columns I am interested in. ID Count=50 Certification Count=9 I want to display these counts on another page. I have found a code to ...
0 votes
0 answers
29 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.
1 vote
0 answers
48 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 ...
0 votes
1 answer
495 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/...
0 votes
1 answer
80 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 ...
0 votes
1 answer
259 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, ...
0 votes
1 answer
557 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 ...

1
2 3 4 5 6