SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We are using sharepoint alerts to send out wiki page change notices. However, when the wiki page is very complex, it is difficult to see exactly what changed.

Is it possible to setup the sharepoint alerts to only send the added/modified/removed lines?

share|improve this question

migrated from Dec 16 '11 at 19:34

This question came from our site for computer enthusiasts and power users.

Even thogh the link above would work, I think that's going to be more of a challenge and cumbersome to implement. The way I would do it is to use an Event Receiver. Something like this should suffice. (I've left the last two methos not implemented:

public override void ItemUpdating(SPItemEventProperties properties)
    var li = properties.ListItem;

    string currentContent = li["FieldToCheck"].ToString();
    var liVersions = li.Versions;

    int PreviousVersionID = liVersions[liVersions.Count - 1].VersionId;
    string previousContent = li.Versions[PreviousVersionID]["FieldToCheck"].ToString();

    var difference = DoComparisonAndReturnDifference(currentContent, previousContent);
share|improve this answer

I think best way to look for changes is in Page History [button under Page tab] of that particular item. The changes are highlighted in a very user friendly way.

share|improve this answer

Yes, but this would require custom coding. You would need to know how to access the version history and compare the fields that have changed to the current values and how to build the custom alert and email. This is for 2007 but should still be very applicable.

share|improve this answer

Your Answer


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