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

I want retrieve the currently published version of a document from a document library using CAML. Can anyone tell me how I can achieve this? I need it to get the currently published version irrespective of draft versions etc.

all the best

share|improve this question

I don't have an environment where I can test this but have some suggestions for you.

Run a query to check if _IsCurrentVersion is TRUE. This may not relate to published versions but it's worth a try.

Or the following query may be enough:

        <FieldRef Name="_UIVersionString" />
        <Value Type="Text">.0</Value>
share|improve this answer

use CAML builder..for the query and retrieve it

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.