recieving notifications on create, update and delete event in sharepoint

Tzippy Freedman 0 Reputation points
2023-05-18T12:11:48.7266667+00:00

I need to receive create, update, delete and share (when a file was shared with some user) change events on sharepoint list, I need to receive the notifications in code using dotnet core c#. I see the following in the documentation:

Drive root item and list change notifications support only the updated changeType. (https://learn.microsoft.com/en-us/graph/webhooks?tabs=http#supported-resources)

Do you recommend using graph api or the sharpoint event receiver for to achieve the required notifications?

Thanks.

Microsoft 365 and Office | SharePoint Server | For business
Microsoft Security | Microsoft Graph
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. RaytheonXie_MSFT 40,486 Reputation points Microsoft External Staff
    2023-05-19T06:16:02.44+00:00

    Hi @Tzippy Freedman

    I will recommend you to use sharpoint event receiver. Graph notification requires additional development effort to set up and manage subscriptions for event notifications. And there may have limitations on the number of subscriptions or the frequency of notifications, depending on the service plan or permissions.

    Sharpoint Event Receiver provides a built-in mechanism within SharePoint to respond to specific events directly. It also offers granular control and flexibility to trigger actions based on events at the item, list, or site level.

    In summary, if you specifically want to respond to SharePoint events within the SharePoint environment, have granular control over event triggers, or are working with older SharePoint versions, SharePoint Event Receivers can be a suitable option.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.