2

I am aware that I can attach remote event receiver in SharePoint Online existing document libraries using the AppInstalled event SP Add-in.

But, I would like to know the possibilities that when I create new document library in the host web, the event receiver should get automatically attached to it.

It is possible?

I thought of creating event receiver on Content Type, but it seems that it is not possible to attach event receiver on Content Type in SPO.

1 Answer 1

4

My normal approach for this would be to add a ListAdded remote event receiver to the host web in the AppInstalled event.

Now any time a new list is added in the host web your ListAdded remote event receiver will be called, and then you can attach your list event receivers as needed.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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