I am trying find exact CAML query, or other possible way in code to find out "The last major published version" (not necessarily the latest)?
Tell me more
×
SharePoint Stack Exchange is a question and answer site for
SharePoint enthusiasts. It's 100% free, no registration required.
|
Note: File can have multiple major versions but only one version can be published one! You cannot get published version by using CAML query. To do it by code you need something like this:
|
|||
|
|
|
Have a look into the U2U CAML Builder. If it can be done, this tool will allow you to build the query. |
|||
|
|
Unfortunately CAML doesn't allow you to retrieve a specific version of the document/List Item. You would have to use the API to do this. |
|||
|
|