sp-dev-docs icon indicating copy to clipboard operation
sp-dev-docs copied to clipboard

SharePoint webhook subscription

Open hajiranazu opened this issue 2 years ago • 7 comments

Target SharePoint environment

SharePoint Online

What SharePoint development model, framework, SDK or API is this about?

💥 SharePoint Framework

Developer environment

None

What browser(s) / client(s) have you tested

  • [ ] 💥 Internet Explorer
  • [ ] 💥 Microsoft Edge
  • [ ] 💥 Google Chrome
  • [ ] 💥 FireFox
  • [ ] 💥 Safari
  • [ ] mobile (iOS/iPadOS)
  • [ ] mobile (Android)
  • [ ] not applicable
  • [ ] other (enter in the "Additional environment details" area below)

Additional environment details

  • browser version
  • SPFx version
  • Node.js version
  • etc

Describe the bug / error

There seems to be an issue encountered while setting up a subscription for a SharePoint webhook. The problem is that the SharePoint Online list webhooks are not consistently firing as expected.

Steps to reproduce

The triggering of the webhook when a new item is created in the SharePoint list is not consistent.

Expected behavior

The desired functionality is that when a new item is created in the SharePoint list, the webhook should be triggered. This webhook is then consumed in Power Automate using an HTTP receiver.

hajiranazu avatar Jul 20 '23 09:07 hajiranazu

Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.

ghost avatar Jul 20 '23 09:07 ghost

Hello, has this been investigated. I'm seeing the same problem.

Ryan365Apps avatar Oct 11 '23 15:10 Ryan365Apps

@hajiranazu, I'm reaching out to check if this issue has been resolved on your end.

Since the steps to reproduce are currently a bit unclear, it would be helpful if you could provide detailed repro steps—including how the webhook was registered, how items were added to the list (e.g., via UI, script, or automation), and any patterns you've noticed when the webhook fails to trigger.

This will help us investigate further and determine if the issue is environment-specific or a broader platform behavior.

Ashlesha-MSFT avatar Jul 08 '25 10:07 Ashlesha-MSFT

@hajiranazu, I'm reaching out to check if this issue has been resolved on your end.

Since the steps to reproduce are currently a bit unclear, it would be helpful if you could provide detailed repro steps—including how the webhook was registered, how items were added to the list (e.g., via UI, script, or automation), and any patterns you've noticed when the webhook fails to trigger.

This will help us investigate further and determine if the issue is environment-specific or a broader platform behavior.

Hello @Ashlesha-MSFT , I also experience the exact same issue as the original topic starter. I register the subscription by using a Logic App through the Send an HTTP Request to SharePoint Online (user delegated). The subscription is registered successfully.

I have implemented all logic of handling request as described here: https://gist.github.com/zplume/1baf04cc05927b57a5da248454b15dcc

List items are created through the interface in SharePoint Online (manually). The first one gets triggered just fine after creating the subscription, but the following will never trigger. My Logic App never receives a notification from the service.

joostvdlinden avatar Aug 29 '25 20:08 joostvdlinden

@Ashlesha-MSFT I just discovered something interesting. Last Friday I added two new list items to my list, the subscription did not send a notification to my Logic App (listening application) for those two new items. From that moment and during the whole weekend: silence.

Just yet I added another new item to the SharePoint list and surprisingly, this time I did received a new notification from the service. My Logic App was triggered and it pulled the three list item changes.

I wonder, why did it not send a notification for the other two items that were added last Friday? Those initial two items were created 25 minutes apart from each other.

joostvdlinden avatar Sep 01 '25 13:09 joostvdlinden

Last Monday I did some additional testing and I was surprised to see that every test led to a successful trigger of my Logic app. I wonder, does it take time for the subscription (webhook) to provision in the SharePoint Online service and does this lead to inconsistent behavior for the first few hours after creating the subscription?

joostvdlinden avatar Sep 05 '25 09:09 joostvdlinden

Apologies for the delayed response. Thank you for sharing the details. Since the delay issue you’ve mentioned is not documented in the SharePoint webhook subscription behavior, I will be escalating this to the engineering team for further investigation.

I’ll keep you updated on any progress or findings from their side.

Ashlesha-MSFT avatar Oct 14 '25 12:10 Ashlesha-MSFT