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

When using Client-Side Object Model for SharePoint 2013, how can I access previous versions of List Item?

share|improve this question
2  
It looks to me this is not possible, perhaps not even through the REST interface either. I can do it on files, e.g., ctx.get_web().get_lists().getByTitle('Test').getItemById(1).get_files().get_ver‌​sions(), but not on pure SP.ListItem. Although it should be possible through SPServices. –  eirikb Nov 15 '12 at 20:40
2  
@erikb are you able to convert this into a full answer for acceptance, I believe you are perfectly correct. –  Hugh Wood Dec 7 '12 at 21:06
add comment

1 Answer

According to this article

ctx.get_web().get_lists().getByTitle('Test').getItemById(1).Versions

should provide the collection you are looking for.

Be careful: SPListItem.Versions and SPListItem.File.Versions are different.

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.