Friday, February 11, 2011

SPListItem SystemUpdate()

SPListItem.SystemUpdate() is an exciting new function that I've learned about today.

SystemUpdate() allows you to update a list item without changing the following fields:
1. Modified Date
2. Modified By
3. And optionally - version of the list item

I just tried this function & it actually works. I will be trying to see if this can work with the document libraries as well as with attachments in a list item (the SPFile object). I've tried to add/delete attachments of a list item with this function, & the results are as the documentation claims it should be.

No comments:

Post a Comment