The IDataEvent represents a contract for event notification containing minimal information about modified items. As you want to have a global event for all content, you can subscribe to the IDataEvent - it will be thrown on the actions Create, Update, and Delete actions for all content. Inside the event handler you can get information about the:
This data is sufficient to allow you to load the corresponding manager and retrieve the actual item.
To subscribe to the IDataEvent:
sender, Telerik.Sitefinity.Data.ExecutedEventArgs e)
var action = @
var contentType = @
var itemId = @
var providerName = @
var manager = ManagerBase.GetMappedManager(contentType, providerName);
var item = manager.GetItemOrDefault(contentType, itemId);
As a result you are subscribed to the IDataEvent and you can access the event's ID, provider name, action, item type. and so forth. You can modify the event's attributes, subscribe an email address to the event, and so on.
Back To Top