November Happy Hour will be moved to Thursday December 5th.

Get removed content CatalogEventBroadcaster.LocalEntryDeleted

Vote:
 

Hi,

Before an entry is removed I would like te remove it from the index if applicable (is an indexable contenttype). I don't see an LocalEntryDeleting event only the LocalEntryDeleted but this is too late since I can't fetch the entry anymore to determine the content type. Is there a better event to listen for?

#123418
Jul 03, 2015 11:12
Vote:
 

You can listen to LocalEntryUpdating instead. It will send the CatalogEntryDto with deleted row, which you can access by using DataRowVersion.Original. At this point you can still check for the content type.

Regards.

/Q

#123435
Edited, Jul 03, 2015 15:14
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.