Monday, 1 June 2015

Order By using CAML queries

Use the below code type to achieve order by using CAML queries in your SSRS query designer

<RSSharePointList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <ListName>Regions</ListName>
  <ViewFields>
   <FieldRef Name="RegionName"/>
  </ViewFields>
<Query>
<OrderBy>
    <FieldRef Name="RegionName" Ascending = "True"/>
</OrderBy>
</Query>
</RSSharePointList>

No comments:

Post a Comment