0

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?

2
+150

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.
| improve this answer | |
  • the approach mentioned in this link derekgusoff.wordpress.com/2017/11/08/… does not support ItemAdding and ItemUpdating RER.... – SharePoint TestDev Jan 3 at 9:31
  • Are you getting any error while using it or what?? – Ganesh Sanap Jan 3 at 9:40
  • 2
    Hey, I wrote that article - you can totally use it for ItemAdding and ItemUpdating. Those are just sychnronous instead of async, that's all. What specific problem are you having with that? – Derek Gusoff Jan 6 at 2:29
  • 1
    Regrardless, ngrok is totally the way to go. Have an upvote Ganesh! – Derek Gusoff Jan 6 at 2:30
  • 1
    I've used that pattern for an ItemDeleting a couple times. Works fine. You just have to implement ProcesEvent instead on ProcessOneWay event. Good luck! – Derek Gusoff Jan 6 at 14:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.