0
votes
2answers
318 views

ItemEventReceiver - ItemDeleting not working with a document library and referencing list

I have a custom list that has a GUID column which refers to the UniqueId of a document in a document library. Every time I upload a document, it should add an entry in this list and populate the ...
1
vote
2answers
319 views

Recycle bin - documents deleted

I have recycle on my site collection. There is also and event receiver which deletes some documents from library in ElevatedPrivileges block ( as System account). OnItemDeleting it's searching for ...
1
vote
1answer
172 views

Deleting SPListItem in event receiver - very long time

I have an event reciever with ItemDeleting action, in which i try to delete an item from another list (I cant realy use cascade delet behavior here, I need to do some stuff that requires the ...
0
votes
1answer
95 views

How to get task name while deleting in EventReceiver?

I have written my Custom function into the EventReceiver created on Tasks. public override void ItemDeleted(SPItemEventProperties properties) { base.ItemDeleted(properties); ...
2
votes
2answers
2k views

Preventing users from deleting an item from a task list

I am using the ItemDeleting event receiver to prevent users from deleting items in a Task List. Currently, my code looks like: if (properties.ListTitle == "Project Intake Tasks") { ...
3
votes
1answer
584 views

How to remove duplicate EventReceiver entries

Lately i had a bug that time-to-time added duplicate event receiver entries in SPEventReceiverDefinitionCollection. So how do i easily enumerate and remove these duplicate entries?