martes, 27 de mayo de 2008

Bug in eventHandler on itemAdded --> ListItem is null

I will continue posting things about sharepoint.
When you implement an ItemAdded event handler you will notify that SPItemEventProperties.ListItem is null. This is becouse a bug in sharepoint.
To work around this you should use the method spList.getItemByUniqueId() passing the memeber SPItemEventProperties.Listitemid wich would be correct.

1 comentario:

Anónimo dijo...

Can you provide me code for this workaround like where to pass listItemId? Your help is very much appreciated.