Is there any way to call azure functions from Sharepoint SPItemEventReceiver.ItemAdded Event handler

JAPNAM SINGH 81 Reputation points
2021-06-29T19:16:26.923+00:00

HI Team,

I was wondering is there any way to call azure function from Sharepoint SPItemEventReceiver.ItemAdded Event handler or any other way to consume azure functions in SharePoint event handler?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,185 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,520 questions
0 comments No comments
{count} votes

Accepted answer
  1. Mike Urnun 9,636 Reputation points Microsoft Employee
    2021-06-30T00:01:59.007+00:00

    Hello @JAPNAM SINGH ,

    I'm not sure of all the features on the Sharepoint side but if it lets you use HttpClient (in the SPItemEventReceiver.ItemAdded event handler) and invoke an HTTP endpoint, you can a corresponding Function App with an HTTP trigger, and the entire thing should work. It seems to have been done before with Sharepoint Online, in example: SharePoint Remote Event Receivers using Azure Function

    Another approach is to use Logic Apps workflow and it might be quicker & simpler to manage:

    • Sharepoint Connector has a dozen triggers, one of which is When an item is created.
    • Assuming that the event you want is provided by the SP connector, you can then call your function app using the Azure Functions connector.

    I hope this helps you to get started, let me know if you have any further questions.


0 additional answers

Sort by: Most helpful