How to upadate only non read only fields of a SharePoint list using client object model? The code sample is working fine for a particular field like title

        string siteUrl = "http://MyServer/sites/MySiteCollection";
        ClientContext clientContext = new ClientContext(siteUrl);
        SP.List oList = clientContext.Web.Lists.GetByTitle("Announcements");
        ListItem oListItem = oList.Items.GetById(3);
        oListItem["Title"] = "My Updated Title.";

But I have an array containing values of all fields of the list and want to update all non read only fields of the list(not a particular field like title) using client object model. Any code example or suggestion is highly appreciated.

1 Answer 1


You can get the fields collection from CSOM

SP.List oList = clientContext.Web.Lists.GetByTitle("List Title Here"); 
SP.FieldCollection fieldColl = oList.Fields;

After that you can check the "ReadOnlyField" Property of the field.


Field field = list.Fields.GetByTitle("Title");

Then check field.ReadOnlyField property

Also Check here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.