Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

ClientContext ListItem Version History

$
0
0

I'm working with the Client Object Model and the Issue Tracking List in SharePoint 2013. I have no problem pulling back list items but I can't seem to figure out how to access the version history on the list item. Basically I'm trying to pull all the comments out of the list item. To load the list item and item.file i do:

            ListItem item = _hdList.GetItemById(id);
            _ctx.Load(item);
            _ctx.Load(item.File);
            _ctx.ExecuteQuery();

The list item has information however item.file has no information inside of it, so I am unable to access item.file.versionhistory. Any ideas what i'm doing wrong?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>