R – ItemUpdating not showing changed values in SharePoint event receiver

event handlingsharepoint

I'm trying to find how a field's value has changed in an ItemUpdating event receiver. The particular field's display name and internal name is Regions.

As soon as ItemUpdating is hit, the value of the Regions field is identical for the following:

properties.AfterProperties["Regions"]
properties.BeforeProperties["Regions"]
properties.ListItem["Regions"].ToString()

I would expect the latter two to contain the old value but surely AfterProperties should be set correctly.

Does anyone know how I can obtain the changed value?

Update: The event handler is attached to a MOSS 2007 publishing Pages list.

Best Answer

I've had a lot of trouble with event handlers on publishing pages libraries. Think it comes from their being other event handlers on there already for publishing. I had better success with updating, can you change to that or do you need the sync event to block the change ?

Related Topic