Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I have a scenario where I have a list with 1 unique field and about 25 other fields making up the rest of the list.

When I do an update on the list item. I would like to only update the item if something has changed. Is there a way to get a hash for the list item so I can test the hash, rather than having to update each and every time.

I guess I could do this using string concatenation of the field values, but is there a more elegant solution?

share|improve this question
add comment

1 Answer

Why not check the Last Modified Date?

If that's not sufficient you have to make your own hash of the object, perhaps using the SPListItem.Xml property.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.