Update List Item without changing Modified By and Modified fields

By Namwar Rizvi - Last updated: Tuesday, September 30, 2008 - Save & Share - Leave a Comment

If you update a field of a SPListItem obeject from code by using the following code snippet

item[“Title”]=”Updated Title”;

item.Update();

then you will notice that Modified By  and Modified field will be updated also. Sometimes, you just want to update fields without changing Modified By and Modified fields, you can do so by using 

item.SystemUpdate();

instead of item.Update();

SystemUpdate() method just updates the intended field values.

Share
Posted in Object Model • Tags: , , Top Of Page

Write a comment