Friday, June 22, 2012

SPSiteDataQuery CAML query for all publishing pages

Reminder to self:  CAML is case-sensitive!
Been struggling with an SPSiteDataQuery that was not returning anything.  Needed to search all publishing pages so I used the following Lists setting:

  <Lists ServerTemplate='850' Hidden='TRUE' />

Except it got coded as:

  <lists ServerTemplate='850' Hidden='TRUE' />

which returned no results.  Worked fine after changing "lists" to "Lists".

Other notes:


No comments:

Post a Comment