• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1207
  • Last Modified:

SPListItem Update - Systemupdate vs UpdateOverwriteVersion

I am programmatically updating some metadata fields in a document library.  The item update command I am using is  item.SystemUpdate(false) because I do not want to update the last modified information on all the documens in the list.   The probelm is I also do not want to create a new version either and SystemUpdate(false) does create a new version.   I see I could use item.UpdateOverwriteVersion as it will not create a new version of the document; however it does update the modifed information.
Is there a way to do both?  Not update modified info and not create a new version.
  • 2
1 Solution
Jamie McAllister MVPSharePoint ConsultantCommented:
Even UpdateOverwriteVersion() creates a new version if minor versioning is turned on. Just to keep things interesting. :)

There is a solution here;

smolakmAuthor Commented:
Thanks for the info.  I will check out the solution to see if it will fit with what I am trying to do.   I was going to try and just temporarily turn off versioning when I run my update program however that would more than likely remove all existing versions to the list items I update.  They certainly dont make this easy.
Jamie McAllister MVPSharePoint ConsultantCommented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now