I am using managed client object model for creating list item, I want to update the Author, Created and Editor fields from code. I have tried lot of things like:
var listItem = list.AddItem(listItemCreationInformation);
listItem["Title"] = "Migrated Date";
listItem["Modified"] = DateTime.Now.AddDays(-10);
//Date Value listItem["Created"] = DateTime.Now.AddDays(-10);
listItem["Author"] = GetUser(clientContext, "Domain\\userId");
listItem["Editor"] = GetUser(clientContext, "Domain\\userId");
listItem["CORID"] = folderPath;
listItem.Update();
clientContext.ExecuteQuery();