SPListItem.UpdateOverwriteVersion creates minor version?
-
Sunday, February 19, 2012 10:54 AM
Hi All,
In a document library in which minor version is enabled, UpdateOverwriteVersion() creates a minor version.
The threads -
explains the similar problem and proposes the solution as turn-off the minor versioning, update the item and turn-on the minor versioning.
But, I cannot temporarily turn-off the minor versioning setting, since the same library may be in use by other users to upload/change their documents and the turning-off the setting might affect their operations.
Is there any-other solution?
Thanks and Regards,
Arjabh
All Replies
-
Tuesday, February 21, 2012 8:58 AMModerator
Hi Arjabh,
You can use method SPListItem.SystemUpdate (boolean) to update the list item without creating new version, please refer to following article about this topic,
Thanks
Daniel Yang
TechNet Community Support
-
Wednesday, February 22, 2012 4:01 AM
Hi, Daniel
Thanks for the reply.
But the fields which I have to update includes 'Modified By' and 'Modified' as well. And SystemUpdate() doesnt update these fields, so I cannot use SystemUpdate().
Thanks and Regards,
Arjabh

