Question

I have been working on couple of remote event receivers inside our SharePoint online sites.

I followed the step mentioned in these links:

  1. Working with Remote Event Receivers in a Provider Hosted App

  2. How to Implement Remote Event Receiver in SharePoint Online

But I am not sure how I can debug these remote event receivers, even the above 2 links did not mention how we can debug RER?

I remember that I used to debug a remote event receivers using Azure Service Bus, but it seems this approach was deprecated by Microsoft.

So can anyone advice, how can I Debug our ItemAdding and ItemUpdating Remove Event Receivers?

Was it helpful?

Solution

Try debugging your remote event receiver locally as given in the below article:

Remote Event Receivers – you’re all doing it wrong.

In order to use this you will need the following things.

  1. Node.JS and ngrok.
  2. Then Start ngrok service and create a RER which points to your ngrok service, instead of real URL.
  3. Then test your RER locally in Visual Studio.

Update:

As per the comments by owner of above article, Derek Gusoff:

  1. ItemAdding and ItemUpdating are sychnronous events instead of async.
  2. So for such events you just have to implement ProcessEvent method instead on ProcessOneWayEvent method.
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top