I am trying to retrieve the document from the sharepoint by setting the GUID and _UIVersionString has the criteria for the query. It is not retrieving the record from the library.

This is my query :

                <FieldRef Name="_UIVersionString">
                <Value Type="Text">1.0</Value>
                <FieldRef Name="GUID"></FieldRef>
                <Value Type="Guid">{810628DE-065A-4DE4-90A3-126D985009BF}</Value>

But when I tried with the other library in the same sharepoint with the same query it is getting retrieved in the result.

May i know what might be the problem?

I am using sharepoint 2010.


To use greater than or equal to there is a seperate tag in CAML query . Try the below code

<Geq><FieldRef Name="_UIVersionString"></FieldRef><Value Type="Text">1.0</Value></Geq>
<Geq><FieldRef Name="GUID"></FieldRef><Value Type="Guid">{810628DE-065A-4DE4-90A3-126D985009BF}</Value></Geq>

Reference: https://msdn.microsoft.com/en-us/library/dd588239(v=office.11).aspx

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.