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

As title says, I need an event to fire when a listitems file has been edited.

I appreciate this isn't as simple as it having it's own event, which is why I've tried to make use of the itemupdating event. Unfortunately, I can't find the relevant fields needed to monitor a change in the file belonging to the list item. I can monitor versions - and I'm pretty sure I have a good grip on how to monitor whether the event was fired because the document was being published or not - but this doesn't cater for simply just editing the file.

share|improve this question
add comment

1 Answer

What you are looking for is the SPItemEventReceiver BeforeProperties and AfterProperties.

You have 6 event receivers to choose from:

  • ItemAdding
  • ItemAdded
  • ItemUpdating
  • ItemUpdated
  • ItemDeleting
  • ItemDeleted

Look at this article here to explain it further. http://www.synergyonline.com/Blog/Lists/Posts/Post.aspx?ID=122

share|improve this answer
    
Thanks Mike, like I said in my OP though - I'm well into utilising these different event receivers, my question is how do I tell if the event was fired because the item's file was edited? –  DeeMac Dec 11 '12 at 23:23
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.