none
Cannot update create date on Survey library by CSOM RRS feed

  • Question

  • Hi 

    I want to update the create date on Survey library by below code:

    List list = web.Lists.GetByTitle(ListName);

    list.Created = DateTime.Now;

    But it throw the error message of "Microsoft.SharePoint.Client.List.Created' cannot be assigned to -- it is read only".

    Is it the create date in each library is not allow to edit by CSOM? 

    Any suggestion will be appreciated.

    Tuesday, April 5, 2016 3:34 AM

Answers

  • Hi Kit2607,

    According to your description, you want to change the list created time.

    Per my knowledge, it’s not possible. The created field of list is read-only.

    You can use SharePoint manager to check the field.

    What we can do is updating the list items’ created field.

    Best Regards,

    CY


    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.

    • Marked as answer by Kit2607 Monday, April 11, 2016 1:45 AM
    Thursday, April 7, 2016 2:28 AM
    Moderator

All replies