0

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 ?

1 Answer 1

2

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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