Contents
To register a remote event receiver On the menu bar, select Project > Add New Item. In the Installed Templates pane, select the Office/SharePoint node. In the Templates pane, select the Remote Event Receiver template. In the Name box, keep the default name (RemoteEventReceiver1), and then select Add.
Use remote event receivers to handle events in the SharePoint Add-in model. Use AppInstalled and AppUninstalling events to set up or remove SharePoint objects and other event receivers your add-in needs.
How to debug a remote event receiver in SharePoint?
Select the F5 key to run the project. Select the + New item button to add an item to the list. Provide a title for the item, and then select Save. The breakpoint that you added to the remote event receiver is hit, verifying that you’re debugging the remote event receiver.
How to debug a remote event in Visual Studio?
Select the F5 key to continue to run the project, and then stop debugging when you’re done. If you have a remote event in your project and have not configured remote event debugging, Visual Studio prompts you to configure remote event debugging (see the following figure).
How to enable debugging in Microsoft Azure service bus?
In the properties pane, open the SharePoint tab and scroll to the bottom. Select the check box for Enable debugging via Microsoft Azure Service Bus. Enter the complete connection string in the text box provided. You obtain the string with these steps.
What happens when a remote event is asynchronous?
Depending on the event, the remote event may be synchronous or asynchronous. It might take a few seconds or more to hit your breakpoint if it is asynchronous. You get the following error when your handler runs in production: “The remote event receiver callout failed.