Monday, March 3, 2014

unable to read lookup column value in itemadded() event handler - object reference error

hi,


http://ift.tt/1eUjuds


the above thread says:


The inherent behaviour of SharePoint is that as soon as a document is uploaded, the "ItemAdded" event gets fired, even before you have specified the custom column values.


So each time you try to acess a custom column value in this event you would get "Null" values.

However after the item is uploaded, sharepoint gets the custom values from the user and fires the "ItemUpdated" event.

Hence, even though you are adding a document to the the document library you have to deal with the custom columns in the "ItemUpdated" event. "




PrasadWT



No comments:

Post a Comment