SharePoint / sp-dev-docs

SharePoint & Viva Connections Developer Documentation
https://docs.microsoft.com/en-us/sharepoint/dev/
Creative Commons Attribution 4.0 International
1.25k stars 1.01k forks source link

Migrating from remote event receivers to webhooks #9249

Open waaromikniet opened 1 year ago

waaromikniet commented 1 year ago

We are migrating some applications from SharePoint 2019 to SharePoint online. The applications use remote event receivers using synchronous events. I was using this page to see if we can use webhooks. It looks like we can’t migrate to webhooks because they don’t support synchronous events.

What are alternatives to suport synchronous events?

Will remote event receivers be depracted in the near future? Just like the add-in model and ACS. Or can we still use them in combination with a modern Azure AD App Registration.


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

ghost commented 1 year ago

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

andrewconnell commented 1 year ago

I'll let Microsoft comment on the future of RER's.

From my POV... RER's are old tech (like the add-in model & ACS) & the lack of investments in that area, with investments in other areas, doesn't necessarily imply a positive future for them.

To directly answer your question, there's no sync way to implement RER's with webhooks. Webhooks simply tell you that something happened, they don't expect a response.

waaromikniet commented 1 year ago

@andrewconnell thanks for the reply. Is there a chance webhooks will support sync events in the future? Based on the path Microsoft is going with this 'old tech' It looks like we have to rethink our migration path.

Maybe @VesaJuvonen can say something about the future of remote event receivers.

andrewconnell commented 1 year ago

@waaromikniet

Is there a chance webhooks will support sync events in the future?

No... generally speaking (across the industry, not just a MSFT/SharePoint position) webhooks aren't sync nor do they process responses more generic than success/failed. They are simply used for an app to notify another endpoint that something happened. Sometimes they include data, sometimes they just mention the basic "something happened that you wanted to be notified about.

While Microsoft hasn't said anything about what they'd add to webhooks in the future, I don't expect it.