locked
Change the ModifiedBy field when using Sharepoint 2007 Web Service RRS feed

  • Question

  • I am using the web service and not the native .net sdk. I would like to know how I can modify either Modified By or Created By on a sharepoint document library that I am uploading files into.
    Wednesday, January 30, 2013 5:58 PM

Answers

  • Those fields are set to "ReadOnly" mode. You can change that attribute so that it's not in ReadOnly mode and that'll allow you to update that field. But I wouldn't recommend you going that route. I don't believe it's supported by Microsoft. I think the following article demonstrates how to do it as a test and pretty much explains the issue/concern with this approach.

    http://stefan-stanev-sharepoint-blog.blogspot.ca/2010/04/updating-read-only-fields-with-lists.html

    I'd suggest you create another custom people field instead and set it's default value to "=[Me]" so that it captures the current user information when someone uploads/edits a document. I think you should be able to update/edit that field from your web service calls since it's not a "ReadOnly" type field. If you want, you can also hide that field from the "New/Edit" form view.


    Pman
    http://www.pmansLab.com/

    • Marked as answer by dharric72 Thursday, January 31, 2013 12:15 PM
    Thursday, January 31, 2013 2:02 AM