SPListItem.SystemUpdate Method (Microsoft.SharePoint)
Updates the database with changes that are made to the list item, without effecting changes in the Modified Time or Modified By fields.
Overload List

Name Description
SPListItem.SystemUpdate ()
Updates the database with changes made to the list item, without effecting changes in the Modified or Modified By fields.
SPListItem.SystemUpdate (Boolean)
Updates the database with changes that are made to the list item, without effecting changes in the Modified Time or Modified By fields, or optionally, the item version.
See Also

Tags :


Community Content

David Lozzi
doesn't always work
I have a workflow that udpates the Name property of an InfoPath form, I then use SystemUpdate and it still shows modified by System Account. I had to modify it further to keep the original editor there, check the blog: http://lozziatdelphi.blog.com/3555377/
Tags :

Kiril Genov
When the SystemUpdate modifies the original editor and last modified time
To prevent SystemUpdate method from changing the original editor and last modified time in a document library, you can use something like the following code:

//code to get the list item
SPUser modifiedBy = item.File.ModifiedBy;
DateTime lastModified = item.File.TimeLastModified;
//code to set the needed fields to new values
item[SPBuiltInFieldId.Modified_x0020_By] = modifiedBy;
item[SPBuiltInFieldId.Modified] = lastModified;
item.SystemUpdate(false);
Tags : systemupdate

Somak Bhattacharyya
Sample Code:
I have seen people asking for a sample usage, here you go:

The following code example uses the GetItemById method to return the fourth item from a list and display specified field values of the item.

This example requires using directives (Imports in Visual Basic) for the Microsoft.SharePoint and Microsoft.SharePoint.Utilities namespaces.

The example assumes the existence of an .aspx page that contains a label control.
It then uses the SystemUpdate(Boolean) method to write the changes made to the SPListItem object into the Database.

SPSite oSiteCollection = SPContext.Current.Site;
SPList oList = oSiteCollection.AllWebs["Site_Name"].Lists["List_Name"];
SPListItem olistItem = oList.GetItemById(4);
olistItem[ "Item_Property" ] = "Item_Value"; // Ensure that the Type you are setting matches the Type of the property you are setting.
olistItem.SystemUpdate( true ); // Creates a new version of the item if versioning is on. If you don't want to create a version let it be false (default behaviour).

Tags :

Thomas Lee
"Affecting" and not "effecting"
It should be affecting and not effecting.
Tags : contentbug

Page view tracker