Questions tagged [azure-functions]

Azure Functions is an event-driven serverless compute platform in Azure and Azure Stack. Its open-source runtime also works on multiple destinations including Kubernetes, Azure IoT Edge, on-premises, and other clouds.

Filter by
Sorted by
Tagged with
0 votes
0 answers
33 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
33 views

SharePoint Online auth certification does not work on other PC/environments

I am trying to follow some steps defined here: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/site-design-pnp-provisioning I create a certification on my SharePoint tenant ...
Arte's user avatar
  • 167
0 votes
2 answers
139 views

Build an instant flow which iterate over a SharePoint library that have 2 million documents and folders

We have a SharePoint document library which contain around 3,000 customers subfolders inside the root folder, and total of 2 million files and sub-folders inside the 3,000 customer sub-folders. Now we ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
88 views

How to build a dashboard like page which summarize the data from a SharePoint list which contain around 85,000 items

I have a custom SharePoint online list named ServiceRequest, which contain around 85K++ items, as follow:- The custom list contain those main custom fields:- Assigned To >> People or Group ...
microsoftdeveloperdesigner's user avatar
0 votes
1 answer
1k views

Access SharePoint Online via CSOM with access Token from Username/Password in Azure Functions

I want to access a SharePoint site with a Token, which I get by Username and PW (AcquireTokenByUsernamePassword). I get the Token and I can access the site via Postman without any problems, but in my ...
Matthias's user avatar
0 votes
1 answer
101 views

How i can deploy an Azure Function needed for an SPFx web part

I want to install the react-chatgpt-app SPFx from https://github.com/pnp/sp-dev-fx-webparts/tree/main/samples/react-chatgpt-app . and as part of the prerequisites is that we need to install an azure ...
John John's user avatar
0 votes
0 answers
54 views

Microsoft Graph SDK is accepting the PATCH request for file Metadata update but nothing gets updated?

Only scenario it is failing is, when we don't pass the required field in initial fileUploadWithMetadata call, post that we are not able to update any field of SharePoint case(folder) or caseItem(...
Harmeet Chandok's user avatar
0 votes
1 answer
108 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
24 views

What are values considered confidential and what are the values considered public when authnticating our Azure Function with Azure Active Directory Ap

We have created an Azure Function which integrate with Active Directory App. Here is our active directory App which have a self-signed certificate:- now inside our Azure function we are passing those ...
John John's user avatar
0 votes
0 answers
229 views

Is that 'Sites. Selected' permissions level allows the SharePoint online global search?

Is that 'Sites. Selected' permissions level allows the SharePoint online global search?. My query is: https://tenant.sharepoint.com/_api/search/query?querytext='*+AND+(Path:"https://tenant....
Harmeet Chandok's user avatar
0 votes
2 answers
2k views

Use CSOM with Secret to integrate with sharePoint Online

I found this video on YouTube which show how to use PnP core inside Azure Function to integrate with SharePoint Online @ https://www.youtube.com/watch?v=9erhWdwbkq8&t=543s but can i have the same ...
John John's user avatar
0 votes
1 answer
264 views

replace PnP.Core.Services with CSOM for our Azure Function which uses .net 6.0

I have an Azure Function which uses PnP.Core.Services to interact with SharePoint to create a list item. The Azure function is based on .net version 6.0. I have this startup.cs:- using Microsoft.Azure....
John John's user avatar
1 vote
1 answer
300 views

CSOM vs PnP Core inside our Azure Functions

I want to write an Azure Function deployed inside Azure and which run on timer schedule. but i am not sure which library i should user, either:- CSOM PnP Core what are the main differences and when ...
John John's user avatar
1 vote
0 answers
291 views

Connect to SharePoint online from Azure Function and ASP.NET core web application using REST API

We are developing those 2 components inside our project:- Azure Function which run on daily basis and which read/write to SharePoint Online lists and libraries. ASP.NET core web application which ...
John John's user avatar
0 votes
1 answer
57 views

How to add a sharepoint item using axios with person and hyperlink column

I'm using azure function to post the items. There's no problem in adding other fields like, single line, number, choice etc. I'm facing an issue with hyperlink and person column.
Filler's user avatar
  • 1
0 votes
2 answers
1k views

From Azure Function (secured by AAD), how to properly detect the caller (the end-user of SPFx WebPart) through the AadHttpClient?

Note: Both Azure Function and the SPFx WebPart mentioned below are written in NodeJS/JavaScript. None of them are in C#. I have an Azure Function (secured by AAD: App Registration) which is being ...
夏期劇場's user avatar
0 votes
2 answers
435 views

How to call Azure Functions App from SharePoint Online as the signed-in User (via Client-side JavaScript)?

I have an Azure Functions App (with HTTP API endpoint) which, upon triggered, needs to know the EMAIL ADDRESS of the caller; calling via the client-side (SPFx) JavaScript on the SharePoint Online Site....
夏期劇場's user avatar
0 votes
1 answer
1k views

Connect-PnPOnline Fails in Azure functions when connecting to SharePoint Online

In our Azure functions, we have powershell scripts that connect to SharePoint online and give monthly reports. Recently, we discovered that connect-pnponline is fail to connect to SharePoint after ...
Cherry's user avatar
  • 101
0 votes
1 answer
460 views

Connect Sharepoint Online with MFA enabled giving 502 bad error

I have created an azure function in Visual studio which is used to check if the logged in user has a permission to SharePoint, my problem is when the user has MFA enabled I get message that "The ...
Ninad J's user avatar
0 votes
1 answer
71 views

Provision SharePoint Online site with an approval workflow

I have a requirement in that whenever an item is added to a pre-existing SharePoint list, a number of things need to occur. A site needs to be created with some customisation One library in the site ...
Orange Juice Jones's user avatar
1 vote
1 answer
643 views

Azure Function - SharePoint CSOM call with currently signed in user

I have a azure function and making a CSOM call to SharePoint online. The authentication was done with App ClientId & ClientSecret. Everything working fine. I am capturing a DocSet version via CSOM ...
san's user avatar
  • 153
1 vote
1 answer
161 views

Create a new navigation term in SPO TermStore from Azure Function (PnP PowerShell)

I'm trying to automate the creation of a TermStore term and apply a simple navigation link. I finally got my Azure Function to connect to SPO and query data, but when I use the New-PnPTerm command ...
Jason's user avatar
  • 15
0 votes
1 answer
49 views

CSOM with netcore sending Notification Emails

Utilising the .net framework of the nugget package Microsoft.Sharepoint.Client we were able to send emails with the Utilities class. Is there any equivalent functionality in the .net standard nugget ...
jimas13's user avatar
  • 318
0 votes
1 answer
55 views

Call a Function on SharePoint Online Site Title Change

I have a requirement to call an API whenever the site Title is changed in SharePoint online. Can someone help me on how to implement this requirement.
Akansha Madhvi's user avatar
1 vote
1 answer
2k views

Azure function to create new item in SharePoint Online list on schedule

Very new to Azure Functions. Need: to create an Azure Function triggered on schedule. The function would create a new item in a SharePoint Online recording time of the schedule trigger. What are the ...
val's user avatar
  • 13
1 vote
0 answers
325 views

Getting ClientContext in SharePoint CSOM

I am developing several Azure Functions using the CSOM API for SharePoint. The main functionality is creating PDF's for various purposes and uploading these to SharePoint with CSOM. I have followed ...
FinneVirta's user avatar
0 votes
0 answers
242 views

Secure ad function - resourceId cannot be empty - API access

I have been following this guide: https://docs.microsoft.com/en-us/sharepoint/dev/spfx/use-aadhttpclient-enterpriseapi When deploying my spfx web part and trying to approve API access I get the '...
BennKingy's user avatar
  • 436
0 votes
1 answer
2k 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 ...
Dhruvil Prajapati's user avatar
0 votes
1 answer
68 views

ContentType from ContentTypeHub takes time to be available in Team Site

I currently use PnP cmdlets to provision a Team Site and want to apply a PnP template that refers to a ContenType usually published by the ContentType Hub. Right now, when I try that, it usually fails ...
ThatChrisGuy's user avatar
0 votes
1 answer
565 views

Assign Member to Group via Powershell Graph API Call throws Request_BadRequest

Calling the following code: $uri = "https://graph.microsoft.com/v1.0/groups/[groupID]/members/`$ref" $body = (@{'@odata.id'='https://graph.microsoft.com/v1.0/directoryObjects/[memberID]'} | ConvertTo-...
fallout's user avatar
  • 1,015
1 vote
1 answer
399 views

Pnp Provisioning

I have successfully followed (well almost got this working) this blog, however I am stuck as I do not understand if i have 6 different site templates how to pick the one to apply. This is all feeding ...
Dorinda's user avatar
  • 65
1 vote
0 answers
131 views

The SharePoint Online returns a Cryptographic exception to the Function apps

I have some function apps which execute every 15 minutes. These function apps connect to many SharePoint sites and get the respective list items. The function apps are written in Visual Studio 2019 C# ...
Ashwin Kheta's user avatar
0 votes
1 answer
215 views

Sharepoint giving 401 unauthorized error instead for 404 file not found for a site that doesnt exists using CSOM

I have created an azure function which gets the site name from the end user and uses CSOM code to get the owners of a sharpoint online site collection using service account credentials. Now there are ...
pushpanjay umrao's user avatar
1 vote
1 answer
578 views

Using SharePointPnPCoreOnline with Azure Function(v1)

I am creating my first Azure Function(V1) with SharePointPnPCoreOnline package and Visual Studio 2019/2017. When I created a function project without SharePointPnPCoreOnline its working without any ...
Ravi Khambhati's user avatar
0 votes
1 answer
427 views

Using SharePointPnPCoreOnline with Azure Function

I am creating my first Azure Function(with .net core 3.0) with SharePointPnPCoreOnline package. When I created a function project without SharePointPnPCoreOnline its working without any error. But ...
Ravi Khambhati's user avatar
0 votes
0 answers
684 views

Azure Functions and SharePoint Online - Newtonsoft.Json issue when calling ClientContex's "CreateSiteAsync" function

I'd like my Azure Function to be triggered on Azure Queue events, and use the event data when communicating with SharePoint Online. The first SharePoint task would be to provision new sites based on ...
kenneho's user avatar
  • 163
0 votes
1 answer
330 views

Microsoft.NET.Sdk.Functions and SharePointPnPCoreOnline not compatible

I'm developing a simple Azure Function project that uses the NuGet package Microsoft.NET.Sdk.Functions (version 1.0.29) to trigger on incoming Azure Storage Queue message, and uses ...
kenneho's user avatar
  • 163
0 votes
1 answer
720 views

Make a Zip archive by clicking a button from PowerApps

It will be great if you can select multiple items in a SharePoint Library an make a Zip archive by clicking a button from powerApps in SharePoint Online. To download or Send to OneDrive or something ...
Akshay's user avatar
  • 626
2 votes
0 answers
625 views

Access a document in SharePoint library from Azure functions

I am relatively new in Microsoft's world. I started on it three months ago and I have a doubt about the connection between SharePoint online (specifically, with libraries and lists), Microsoft Flow ...
Carlos Muñoz's user avatar
0 votes
1 answer
256 views

Using Bing Custom Search to integrate results from Bing for Business

Team, I have gone through the articles for Microsoft search for bing.com. It says we have to enable few features in Azure. Once we have configured in Azure portal through orgnaization login we can ...
Dhanasekaran G's user avatar
0 votes
1 answer
954 views

OfficeDevPnP.Core used in azure function (v1), alternatives

it looks like not possible to prepare an Azure function dealing with the newer small features like dealing with client side pages (e.g. headers part) and any newer as up coming "Page Site Templates": ...
rychlmoj's user avatar
  • 239
2 votes
1 answer
4k views

400 bad request while connecting to sharepoint site using Azure Function app

I am new to Azure Functions. I am creating a function to call a SharePoint site but stuck at execute query. Here is my code - var password = "Somepassword"; var username = "Some login name"; var Url ...
Dixit Soni's user avatar
1 vote
1 answer
96 views

Which Azure Functions App's Subscription plan best suites calling a .exe console application on daily basis

I am working on a SharePoint online site which contain a custom list. now i want to host a console application inside Azure Function App, and trigger it to run daily @ 1:00 am. the console application ...
John John's user avatar
1 vote
2 answers
377 views

Azure web jobs vs Azure functions-which one is best for migrating timer jobs to SharePoint Online and why?

We are migrating our SharePoint environment to O365. i am not sure whether to use azure web jobs or functions to migrate timer jobs to SharePoint Online. please let me know that what will be the best ...
Adarsh Awasthi's user avatar
0 votes
1 answer
481 views

How to Call 3rd party API using Azure function and display in SharePoint online Site using SPFx?

I have create one azure function to call 3rd party API and used application ID in SPFx webpart but when on 'gulp serve' it shows error. I have tried in both team site as well as developer site. I am ...
Akshay's user avatar
  • 626
3 votes
2 answers
2k views

SharePoint online anonymous contact form

We have E5 Office 365 subscription. Now we have requirement that we have to put anonymous page where public will add data and that data should go to SharePoint Online custom list. We have Azure ...
Milind's user avatar
  • 1,538
1 vote
2 answers
140 views

Run PnP provisioning script in the cloud

With SP2010, we had our site provisioning process on the server. Now, with SharePoint Online, we have no servers anymore, we got PnP provisioning, that is great, but now I wonder, can I put the PnP ...
vilmarci's user avatar
  • 906
1 vote
1 answer
904 views

Azure function CSOM The remote server returned an error:(400) bad request

I am trying to make a simple query to sharepoint online using Azure function created in VS2017. My code looks like below: List mylist = myweb.Lists.GetByTitle(listName); CamlQuery camlQuery = new ...
sajjad ahmad's user avatar
3 votes
0 answers
148 views

AAD registered Azure Functions + GraphAPI + SharePoint Online?

If my Azure function app and SPO are registered in the same AAD can GraphAPI Delegated be used to write to SPO Lists as the calling user without additional authentication libraries or steps? White ...
Hell.Bent's user avatar
  • 1,299