Forum Discussion

priya216's avatar
priya216
Copper Contributor
Dec 09, 2021

How to order in a highlighted content using CAML?

Hello

 

I am struggling to sort the order of the pages library on a site.

I am using CAML query.

Here is my query :

<View>
<Query>
<Where>
<Eq>
<FieldRef Name="ClientPage"></FieldRef>
<Value Type="Integer">1</Value>
</Eq>
</Where>
<OrderBy Override="TRUE" UseIndexForOrderBy="FALSE">
<FieldRef Name="Name" Ascending= "TRUE" />
</OrderBy>
</Query>
</View>

 

Everytime I add a page in appears not in ascending order. It appears at the end of the results.

Where am I going wrong ?

 

Thanking you in advance.

 

Thank

Priya

No RepliesBe the first to reply

Resources