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
I don't have an environment where I can test this but have some suggestions for you.
Run a query to check if
Or the following query may be enough: