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

How to query SharePoint 2013 and get all version objects across all items within a specific list?

$
0
0

Hi there,

Is there a way to query a SharePoint instance and get all version objects back across all items within a specific list in one go?

All code samples I found perform a costly iteration on all items within the list! E.g.

 foreach (SPListItem objItem in listItems)
                            {
                                SPListItemVersionCollection objVerisionColl = objItem.Versions;
                                ...

                            }

Potentially there is a way to use the Search API? Essentially the data should be in the search index somewhere?

Search REST API reference documentation: http://msdn.microsoft.com/en-us/library/jj860569.aspx

                       

Regards, Carl


Viewing all articles
Browse latest Browse all 25064

Trending Articles



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