Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds

Update Author filed

  Asked By: Aurelio    Date: Dec 19    Category: Sharepoint    Views: 1038

I'm trying to update "Author" field using SharePoint OM and it's throwing exception that cannot update a read only field.

Is there a way to update "Author" field using SharePoint OM.



2 Answers Found

Answer #1    Answered By: Ciara Collier     Answered On: Dec 19

Can you post what code you are using to get the 'Author' field  reference you are trying to update?

Answer #2    Answered By: Keenan Whitehead     Answered On: Dec 19

((SPListItem)destFile.Item)["Author"] = fileUserList.SelectedValue;
I have a column Author in destination document library. If I change Author to say File Author, then it updates correctly.

Didn't find what you were looking for? Find more on Update Author filed Or get search suggestion and latest updates.