Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have written my Custom function into the EventReceiver created on Tasks.

public override void ItemDeleted(SPItemEventProperties properties) { base.ItemDeleted(properties); MYCustomFunctionforDelete(properties); }

I want to save the TaskName into my CustomList, when I delete any task from TaskList.

I am able to get the Name of TasksList, but not finding TaskName which is going to delete.

How can I do this ?

share|improve this question
add comment

1 Answer

up vote 2 down vote accepted

I think you should be using the ItemDeleting event to get the name of the task. Since ItemDeleted event happens after the item is deleted you cannot get information about something that already does not exists. There is a reference about the event properties : http://www.c-sharpcorner.com/blogs/4223/before-propertiesafter-properties-and-listitem-in-sharepoin.aspx

share|improve this answer
    
Thanks Elitza Atanasova. Its worked for me. –  Shahid Nov 26 '12 at 9:30
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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