Everytime I need to code an event receiver I always face the problem of what to use in order to get the Changed Values and Original Values of the event Item.
Guess we all know the: Yet, at this moment (the moment right after you add a new document), the Before Properties has no usefull values like it should. So, not only the Update events are fired, when your are adding a new document (because infact the document is already saved), as the Before Properties work diferently from the standard Update action.
The library was configured with multiple Content Types, but the issue occurred only on some of them.
It appeared that for those Content Types, the Managed Metadata field was Optional, not Required.
I tried reproducing that configuration in a new document library but there everything kept working, so the issue had to be with the existing library.
Further analysis, comparison and reflection showed that the problematic library was missing some Taxonomy-related Event Receivers.
Then this morning, I had a friend look at the line of code that was returning the null problem: int delivery Qty = int. To String() method for people that wanted to retrieve information from the properties bag when an Item Updating event is fired from the Datasheet view.
Recently I had a problem setting the title field of a Page within the pages library.
My requirement was to set the title with the value from the Page Title field of the current item.
Event handlers can be defined as either Synchronous or Asynchronous - regardless of the event type.
By default, events were always asynchronous if they had the "ed" suffix (Item Added, Item Updated), and synchronous if they had the "ing" suffix (Item Adding, Item Updating).
Today I was troubleshooting a customer farm where Managed Metadata would remain empty in Share Point, even though it was filled in correctly in the document’s Document Information Panel.