Tuesday, August 26, 2014

Setting Row Limit in CAML Query

Here, I am going to give an example to set RowLimit for list items in CAML Query.

Query

<View>
<Query>
<OrderBy>
                                    <FieldRef Name="Created" Ascending='FALSE'/>
</OrderBy>
</Query>
<ViewFields>
<FieldRef Name="ID"/>
<FieldRef Name="Title"/>
<FieldRef Name="Job_x0020_Title"/>
<FieldRef Name="Email_x0020_ID"/>
<FieldRef Name="Member_x0020_Name"/>
</ViewFields>
<RowLimit Paged="TRUE">1</RowLimit>

</View>

No comments:

Post a Comment