Posts

Showing posts from February, 2025

Custom Webhook Processing for SharePoint List Events Using Azure Functions

  Custom Webhook Processing for SharePoint List Events Using Azure Functions Use Case When an item is added, updated, or deleted in a SharePoint Online list , an Azure Function processes the event and updates an external system (e.g., a CRM, database, or sends notifications via Teams/Email) Solution Architecture SharePoint Webhook : Subscribes to list events (item added, updated, deleted). Azure Function (HTTP Trigger) : Receives the webhook notification. Graph API / SharePoint REST API : Retrieves item details. External System Update : Pushes data to SQL, CRM, or sends notifications. Steps to Implement Step 1: Create an Azure Function App Go to Azure Portal → Function App → Create Choose Runtime Stack → .NET / Node.js / Python (as per your preference) Select Hosting Plan → Consumption Plan (Pay-as-you-go) Deploy and get the Function URL Step 2: Create an Azure Function to Receive Webhook Events C# Code for Azure Function (HTTP Trigger):

Sites.Selected | Graph API SharePoint Permission

Image
  SharePoint Site Collection Permission   The "sites.selected" permission in Microsoft Graph API allows you to grant an application access to specific SharePoint sites instead of all SharePoint sites in the tenant.   Step1: To   Configure "Sites.Selected" Permission in Azure App Registration To use "sites.selected" , you need to: Register an App in Azure AD . Grant "Sites.Selected" Permission to the app. Manually Grant Access to the specific SharePoint site. Use Microsoft Graph API or PowerShell to assign the required role (Read/Write).   Step 1: Register an App in Azure AD Go to Azure Portal → Azure Active Directory → App Registrations . Click New registration . Provide a name (e.g., SharePointAccessApp). Choose Accounts in this organizational directory only . Click Register . Step 2: Add "Sites.Selected" API Permission Navigate ...