We are migrating some applications from SharePoint 2019 to SharePoint online. The applications use remote event receivers using synchronous events. We can’t migrate to webhooks because they don’t support synchronous events. So, we are also migrating the remote event receivers to SharePoint online. They work fine against online. We are using ACS to connect to SharePoint. However, I was having a discussion on Github and Vesa mentioned that ACS will be deprecated. See the question here: https://github.com/SharePoint/sp-dev-docs/issues/9235
We are now rebuilding the remote event receivers to use an Azure AD app. This also works for us. We took these steps to create and connect a RER to our SharePoint online list without the need for ACS.
- Create an Azure AD app with sites.selected permissions on SharePoint api
- Create a certificate and add to the app
- Add fullcontrol permissions for the app with Grant-PnPAzureADAppSitePermission on my site collection
- Log in with PnP.PowerShell using Connect-PnpOnline [tenant.sharepoint.com] -ClientId [clientid] -CertificatePath c:\temp\certs\test.pfx -CertificatePassword $password -Tenant '[mytenant].onmicrosoft.com'
- Add a RER to my list using Add-PnPEventReceiver
- Host the RER locally using devtunnel or Ngrok
We see the RER firing after this.
I am wondering what is the future of remote event receivers in general? Will they stay supported for SharePoint online? Or should we rethink about our migration project and step away from remote event receivers?