Thursday, February 23, 2012

Changing the "Created By" Value in a SharePoint List Item

C#


// Where "item" is of type SPItem
item["Created By"] = web.EnsureUser("AD account name").ID;
item.UpdateOverwriteVersion();

No comments:

Post a Comment