SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
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
@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

According to this article


should provide the collection you are looking for.

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

share|improve this answer
Unfortunately it is not correct,since the link you provided for SSOM. JSOM (and CSOM) SP.ListItem object does not expose Versions property – Vadim Gremyachev Dec 17 '14 at 15:47

If you have a document library use:
JSOM: .get_file().get_versions()
REST: ../File/Versions

However if you have a normal list this won't work, but instead you can request the item file directly. This is a hack and I can't guarantee future support:

var itemFileUrl = 
  _spPageContextInfo.webServerRelativeUrl + 
  "Lists/" + listName + "/" + itemId + "_.000";

JSOM: .get_web().getFileByServerRelativeUrl(itemFileUrl).get_versions()
REST: "_api/Web/GetFileByServerRelativeUrl('" + itemFileUrl + "')/Versions

You can also use SPServices although I'm not sure this will work with CORS.

share|improve this answer

Your Answer


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.