SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

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.