Forum Discussion
Default column value - Event Receiver
I came accross this "how to" article recently and thought it was interesting.
http://social.technet.microsoft.com/wiki/contents/articles/34873.sharepoint-2013-how-to-enable-remote-event-receivers-with-existing-list-libraries.aspx
I haven't not had a chance to run through the steps on my own but thought I would pass it on to you.
Thanks
Don
- Levi JohnsonOct 18, 2016Brass Contributor
For what it's worth, it's much easier to set the Event Recievers directly on the list through CSOM. Once your remote event receiver is deployed to azure, you can use the following code to wire it up:
EventReceiverDefinitionCreationInformation eventReceiver = new EventReceiverDefinitionCreationInformation();
eventReceiver.ReceiverName = recieverName;
eventReceiver.ReceiverUrl = AZUREURL + "/Services/" + recieverName + ".svc";
eventReceiver.SequenceNumber = 1000;eventReceiver.EventType = EventReceiverType.ItemAdded;
targetList.EventReceivers.Add(eventReceiver);
clientContext.ExecuteQuery();and viola! You have a working Remote Event Receiver.