I am trying to set the value of a field in a ListItem in an event receiver, but its not working
Everything I do during the event
properties.AfterProperties[<field internal name>] = 1;
No errors are thrown, but the field that I set does not change. I also tried
properties.ListItem[<field internal name>] = 1;
properties.ListItem.Update();
You also tried SystemUpdate ();
I know that I have to configure afterproperties properties, but I think I'm missing the obvious step.
thank
source
share