locked
Update items in a list without changing the last modified date RRS feed

  • Question

  • Hi,

    I have added a metadata column to a list. The list has 1000s of entries. Now, I want to edit the list items and add information to the new column. Is it possible to store the information without changing the last modified date and user info ?

    Thanks
    Sven

    Sunday, March 6, 2011 1:16 AM

Answers

  • Yes, you can edit the list item without modifying Modified date & Modified User.

    For that you have to use SPListItem.SystemUpdate() method. This method Updates the database with changes that are made to the list item without changing the Modified or Modified By fields.


    Regards,
    Shantha Kumar .T | MCPD - SharePoint Developer 2010 | MCITP - SharePoint Administrator 2010 |
    (B) Shantha Kumar's Blog | (T)Follow me | (C) IOTAP
    • Proposed as answer by Stefan BauerMVP Sunday, March 6, 2011 9:57 AM
    • Marked as answer by GuYuming Wednesday, March 16, 2011 3:12 AM
    Sunday, March 6, 2011 2:48 AM