Remote Event Receiver won't fire on SharePoint Online when provisioned externally via a console app

Copper Contributor

I have deployed a remote event receiver to SharePoint Online. I used a Povider Hosted App hosted in Azure and it fires when a new item is added to a document library. This all works perfectly. But, when I try to do the same thing from a console app it doesn't work - I have copied the code that attaches the ItemAdded event into my console app and run it there. It all appears to work and if I examine the event receivers on the lists everything looks correct, but the event won't fire where it was attched using the console app.

Just to clarify, I use the same code in my app's AppInstalled event and in my console app and they both add the event receiver correctly. But the events only fire where they were added via AppInstalled and not via the console.

2 Replies

I've just noticed that when I remove my app my AppUnisntalling event deletes all the event receivers from all lists and succeeds except where events have bee added via the console app and reports it does not have permission. The plot thickens.