Tag Info

New answers tagged


There was not an issue with the code nor the Sharepoint edition. The issue was a somewhat scrambled list template, with multiple duplicate content types. I recreated it and everything is OK.


This should work for you. You have to call the .Update() on the field not on the list. public override void ItemAdded(SPItemEventProperties properties) { SPWeb myWeb = properties.Web; string projectName = properties.ListItem["Project Name"].ToString(); var customTemplate = myWeb.ListTemplates["ProjectTemplate"]; myWeb.Lists.Add(projectName ...

Top 50 recent answers are included