Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [webapi]

The tag has no usage guidance.

5
votes
1answer
3k views

How can I access SPO from Azure WebAPI?

I'm working with the following: Azure MVC app (using organisational authentication with Azure AD) WebAPI (within the MVC project) SharePoint Online MVC => API I would like to use AJAX to ...
4
votes
2answers
3k views

Get Likedby column value from List Rating Setting

I have created a custom list and activated rating setting. I want to count the number of likes and likedby. But when I modify the list view I found Likedby is disable but checked and likedby is not ...
4
votes
1answer
3k views

Sharepoint 2013 with custom webapi service

I want to add a custom webapi service to sharepoint 2013. What I did so far is Create the webapi application Added an application in IIS Imported the webapi application Tests are succesfull to get ...
3
votes
2answers
2k views

How to use SharePoint REST Api in an application that is hosted outside of SharePoint

I have a requirement where I have to perform CRUD operation on SharePoint 2016 List and Libraries using the REST API from JavaScript. The problem is the application from where I need to make the calls ...
3
votes
1answer
1k views

Pass authentication from provider hosted add-in to external web service

We are developing an low-trust provider hosted add-in which will be hosted in the cloud. We use Web API to retrieve data from the add-in. To ensure that only authenticated users can call the Web API ...
3
votes
0answers
300 views

Calling ASP.NET Web API 2 from an SPFx webpart

I am facing an issue with authenticating my SPFx webpart against an Azure AD backed Web API. What I have done so far is Created a ASP.NET WEB API 2 project. Added OWIN and configured CORS and OIDC in ...
2
votes
1answer
7k views

REST API Getting Fields from an Lookup List

I have a REST query that looks like this /_api/lists/getbytitle('MainList')/items?$select=Title,LookupField/Id,LookupField/Title&$expand=LookupField That works fine. But when I try to pull ...
2
votes
1answer
344 views

How to make sure that webhook event is only handled once?

As I understand the payload that is sent to subscribers does not contain any data about the event. Instead I'm supposed to use Microsoft.SharePoint.Client.List.GetChanges and process the changes in a ...
2
votes
0answers
323 views

Sharepoint 2013 Hosted App. Access-Control-Allow-Origin - Access Denied

I am working with SharePoint 2013 and I developed some app parts to show information in our intranet. These app parts get data from WEB API using jQuery, It works fine in Chrome, Firefox, but in ...
1
vote
1answer
77 views

SharePoint 2019 - Web API

Goodnight, I have a WEB API application with windows authentication, and I have an SPFX application in sharepoint 2019. Everything is on premise. How can I authenticate the api with the current ...
1
vote
1answer
21 views

External data move to Azure cloud and call web API through Sharepoint online, Please suggest approach

I want to move external data to Azure through web API. I am able to deploy web API in Azure but how to call web API through SharePoint online? Or can we use SharePoint hosted apps for entire scenario ...
1
vote
1answer
131 views

Get SharePoint user from WebApi2 Identity

I have a WebApi2 endpoint where supportCredentials flag is set to true. On the IIS the Anonymous Authentication on false and the Windows Authentication on true. What I'm trying to do is to load the ...
1
vote
2answers
1k views

Calling WebApi in provider hosted add-in from SharePoint javascript

We are developing an on-premise provider hosted add-in. We would like to call the add-ins WebApi from JS code on a SharePoint page, avoiding app-parts (app part have several limitations). We are ...
1
vote
0answers
53 views

SharePoint authentication - Web api

Goodnight, I have a site in Sharepoint 2019 with a webpart spfx and I have a site where a web api runs with the business logic. The api has Windows authentication From SharePoint I can connect to ...
1
vote
0answers
51 views

SPFX Sharepoint 2019

I created an app in spfx on sharepoint online and connect to a app service use AadClient. It's possible to do the same in SharePoint 2019 On Premise and On Premise Api?. Thanks
1
vote
0answers
48 views

Web api - Http 302 - SPFX

Good afthernoon I have a project in sharepoint framework and a Web API project with Azure AD authentication. In the API I have a controller with Autorize Attribute. If the WEB API runs in localhost,...
1
vote
0answers
20 views

Can a custom web api using Azure AD App Only token get throttled by SharePoint Online? [closed]

I have 02 custom web api. One using user and password and another using Azure AD App Only token to connect to SharePoint Online. None of them are performing batch activities, but simple CRUD ...
1
vote
0answers
43 views

Async call to REST API in page layout code-behind

Please excuse my ignorance -- I am not sure if this is even correct practice, let alone possible to achieve in SharePoint. My self-taught knowledge of SharePoint development was all learned by ...
1
vote
0answers
104 views

Web API to SharePoint

In our project we have a mobile app which is connected to a Web API, now our requirement is that the Web API should call SharePoint to update a managed meta data column of an document library item. I ...
0
votes
3answers
186 views

How do we fetch data through WebAPI/WCF Restfull service which hosted in azure, from SharePoint online site by using c# coding(httpwebrequest)? [duplicate]

How do we fetch data through WCF Restful/WebAPI service which hosted in azure, from SharePoint online site by using c# coding(httpwebrequest)? Can we need to create app for the SharePoint online which ...
0
votes
1answer
101 views

How to connect to SharePoint from different server

I am using SharePoint 2013 with AD authentication. Since the front end application is made in Java I am using .net Web APIs to connect to the SharePoint server. So any request from the user browser(...
0
votes
1answer
2k views

Create Application and Custom WebApi for Sharepoint Online

I have an Office 365 Subscription with Sharepoint Online. I need to: Developing Custom Application that access an SQL Azure Database. Should I use Sharepoint AddIn in Visual Studio 2015/2017 ? ...
0
votes
0answers
15 views

Inovke Secured Web API from remote event receiver

I have a Remote Event Receiver developed/deployed for SharePoint online using hosted-addin. This add-in can be deployed in different sharepoint online enviroments. When item added event gets triggered ...
0
votes
1answer
35 views

I am writing a web api code to upload documents in specific folder using csom code using savebinarydirect method, which is failing

I can upload the documents using a console app, but when using the same code in. Net Web API, I am getting an error saying, "Microsoft.Sharepoint.Client.File" doesn't contain a method "...
0
votes
0answers
14 views

Add controller to SharePoint 2013 farm solution

I am trying to create an Odata service for SharePoint 2013 farm solution. I tried installing Simple.OData.Client via script manager but I do not see any option to add the controller. I tried the ...
0
votes
1answer
16 views

How can I access the client machine folder in Azure Web API

Here I am trying to access the file from client machine on which running the Application using Azure web API. How can I access the client machine folders in Azure Web API Controller. Is it possible ? ...
0
votes
1answer
804 views

Unauthorized Error using web api with REST in different site collection the add-in isn't deployed at

I'm trying to write a sharepoint 2013 add-in that reads certain list info from a bunch of site collections i get first and write into an array, however whenever i try to access any sitecollection but ...