I am using client object model to manipulate list items on sharepoint 2013. My code is executing ok and update list value sucessfully. But it is not displaying on List on sharepoint.
here is code
var clientContext = new ClientContext(sharepointSiteName);
List AnnouncementList = clientContext.Web.Lists.GetByTitle(Constants.EmployeeListName);
ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation();
ListItem item = AnnouncementList.AddItem(itemCreateInfo);
item.FieldValues["CompanyName"] = "New";
item.Update();
clientContext.ExecuteQuery();
Thanks
If new Item not appear on list check view Criteria, do you have any filtration.
You can check item from content and site structure
Hi Tarek,
It is not solving issue. My problem is above code add one new row in list, but that new row does not have values that i have enter. Also i am using o365.
try this ,
http://msdn.microsoft.com/en-us/library/gg277498%28v=office.14%29.aspx
Also, check whether the updating field names are valid or not.
Change your code snippet to below.
var clientContext = new ClientContext(sharepointSiteName); List AnnouncementList = clientContext.Web.Lists.GetByTitle(Constants.EmployeeListName); ListItemCreationInformation itemCreateInfo = new ListItemCreationInformation(); ListItem item = AnnouncementList.AddItem(itemCreateInfo); item["CompanyName"] = "New"; item.Update(); clientContext.ExecuteQuery();
Hi Bala,
Still it is not solving my problem, result is same.
Hi Dinesh,
It is not solving my problem, result is same.