Forum Discussion
priya216
Dec 09, 2021Copper Contributor
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