Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Is it possible to get the values that were inserted (to create an item in a list) from inside the ItemAdding event?

For ItemAdded the data is available in properties.ListItem, but for ItemAdding this is null.

Is there some way to retrieve the data inserted by the user in the create form?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

Have a look at properties.AfterProperties, should hold the data for ItemAdding.

http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spitemeventproperties.afterproperties.aspx

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.