ClientContext clientContext = new ClientContext(SiteURL); SP.List oList = clientContext.Web.Lists.GetByTitle(ListName); ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); ListItem oListItem = oList.AddItem(itemCreateInfo); oListItem["xxx"] = ExcelData.Tables[0].Rows[i]["xxxx"].ToString(); oListItem.Update(); clientContext.Credentials = new System.Net.NetworkCredential(UserName, PassWord, Domain); clientContext.ExecuteQuery()
you should use internal name.(below is the image to find internal name of column) go to list setting -> Click on column name [Column (click to edit)] -> then you will see below image
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)