What does remote event receiver do in SharePoint?

What does remote event receiver do in SharePoint?

Essentially a Remote Event Receiver is a hook that allows you to execute your code in response to an event that occurs in SharePoint. There are several techniques for responding to events in SharePoint Online, but the Remote Event Receiver is the most powerful.

Are there remote event receivers in Visual Studio?

Microsoft provided tooling with Visual Studio to create Remote Event Receivers, but unfortunately the only way to expose this tooling was in the context of a Provider-Hosted App. This is unfortunate because Remote Event Receivers have nothing to do with Provider-Hosted Apps.

What are the components of a remote event receiver?

Luckily there are really only two components to a Remote Event Receiver: The registration is where you tell SharePoint, “call this endpoint every time this event occurs”. The CSOM provides mechanisms for adding Remote Event Receivers, but the details depend somewhat on the type of event receiver being deployed.

Can a provider host a remote event receiver?

This is unfortunate because Remote Event Receivers have nothing to do with Provider-Hosted Apps. In order to develop a Remote Event Receiver using the Microsoft-provided tooling, a developer had to create a Provider-Hosted App project and deploy their RER along with it.

How can I create a remote event receiver?

In order to develop a Remote Event Receiver using the Microsoft-provided tooling, a developer had to create a Provider-Hosted App project and deploy their RER along with it. This added a great deal of complexity to the development effort, and made packaging and deployment a painful and tedious experience.

Do you need manage permission for a remote event receiver?

Attaching a remote event receiver to an object in the host web usually requires Manage permission for that object only. For example, when attaching an event receiver to an existing list, the add-in requires Manage permission on the List only.

How to register a remote event receiver in PNP?

The PnP PowerShell library provides the ability to register a Remote Event Receiver in a one-liner. For example, to set up an RER that is invoked every time an item is updated on a list, execute: 1