Some useful posts (and its comments also!):
- http://www.sharepoint-tips.com/2006/08/bad-news-synchronous-list-events-bug.html
- http://msdn2.microsoft.com/en-us/library/aa979520.aspx
Summary:
- ChangedProperties always contains nothing
- Other members no always contain meaningful values – depends on event
- AfterProperties.Count will always be 0 but AfterProperties[COLUMN_NAME] will have values.
- The values stored in the AfterPropereties collection are all stored as strings
Excerpts:
I managed to also get information about the item in the ItemAdding event by using…
properties.AfterProperties["InternalColumnName"].ToString()
Note that the if the column display name has spaces in it (e.g. “Internal Column Name”) then the internal column name will most likely be something like “Internal_x0020_Column_x0020_Name”. User can change this collection item to change the value to be saved to database.
In the ItemUpdating event
properties.AfterProperties["Description"] will give the new value
and customer["Description"] will give the existing database value.
In ItemUpdated you can not get this as the valued have been commited.
Posted by calvin998