Quantcast
Channel: Developing Apps for SharePoint 2013 forum
Viewing all articles
Browse latest Browse all 8089

How to register a Remote Event Receiver for all Document Libraries in a site

$
0
0

I have seen all the previous question about Remote Event Receivers but I have not seen any solution to the following setup:

1. We have a provider hosted app that is NOT implemented in C# / Created in Visual Studio

2. The Sharepoint app part is configured in Visual Studio 2013 and registered in our tentant, installed in our site

3. We want the receiverURL to point to a new URL like this (yes we tried to variants):

<Receivers ListTemplateId="101">
    <Receiver>
      <Name>RemoteEventReceiver4ConnectionsItemAdded</Name>
      <Type>ItemAdded</Type>
      <SequenceNumber>10000</SequenceNumber>
      <Url>https://OURHOSTNAME/Office365CallBack/</Url>
    </Receiver>
   
    <Receiver>
      <Name>RemoteEventReceiver4ConnectionsItemDeleted</Name>
      <Type>ItemDeleted</Type>
      <Url>~remoteAppUrl/Services/RemoteEventReceiver4Connections.svc</Url>
      <SequenceNumber>10000</SequenceNumber>
    </Receiver>
  </Receivers>

Deploying the app works fine, launching the ProviderHosted app also works.

Even appEvents are being posted to the ProviderHosted app, but not these events...

So I tried to register the Remote Event Listener programmatically.
I don't have CSOM available in JAVA, so I decided to add the registration code to another Provider Hosted App en register the remote event listener programmatically. Disadvantage is , that even if this works, I need to find a way to attach this listener to all existing AND new Document Libraries...

The code runs fine, but still, there are no events coming in.

So now I am stuck and could use some help from the community...


Viewing all articles
Browse latest Browse all 8089

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>