Vipul Kelkar

Vipul Kelkar

  • NA
  • 1.9k
  • 568.6k

Get the list item having highest number of versions created

Jan 10 2013 1:53 AM
Hi,

Is there a way I can programatically fetch the listitem that has highest number of major versions created WITHOUT iterating through all the list items ?

I tried ORDERBY on the _UIVersionString column and set rowlimit to 1. Somehow I am not able to make it work, The query always retuns the first item and not the one with MAX versions